pnp / pnp/pnpframework

Get-PnPSiteTemplate: GetAccessTokenAsync() called without an ACS token generator

Open
#929 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
259
Forks
161
Avg merge
10h 33m
Merged PRs (30d)
1

Description

I'm using PowerShell 7.3.8 with PnP.PowerShell-Module 2.2.0 and i'm facing the error below when i try to get a provisioning-template that includes Lists ( i have tried multiple lists, including custom lists and Event-lists, but the error is always the same ).
Using Set-PnPTraceLog did not help, as the file created is empty.

PS C:\Temp> Get-PnPSiteTemplate -Out c:\temp\template.xml -ListsToExtract "15d8a18d-b27b-4a80-9555-3e521b8216c3" -handlers Lists

Get-PnPSiteTemplate: GetAccessTokenAsync() called without an ACS token generator. Specify in AuthenticationManager constructor the authentication parameters

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Get-PnPSiteTemplate command with the Lists handler and trace the call to GetAccessTokenAsync and the AuthenticationManager constructor. Confirm the authentication path used for list extraction, then verify that provisioning a template containing lists completes without the ACS token generator error.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, powershell
Domain
authentication
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.