Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes Get-PnPAccessToken on different sites #2270

Merged
merged 1 commit into from
Aug 23, 2022

Conversation

milanholemans
Copy link
Contributor

@milanholemans milanholemans commented Aug 23, 2022

Type

  • Bug Fix
  • Enhancement
  • New Feature
  • Sample

Related Issues?

Fixes #2269

What is in this Pull Request ?

Extracts the root URL of the current context. This URL is used as resource to fetch an access token. This way you are able to get an access token on all SharePoint sites. Now you must connect to the root site or you'll receive an error.

@gautamdsheth gautamdsheth merged commit 92ae6eb into pnp:dev Aug 23, 2022
@gautamdsheth
Copy link
Collaborator

Thank you so much @milanholemans for this fix !
Really appreciate your help and contributions on the issues and enhancements 😊🙏

@milanholemans milanholemans deleted the accesstoken-get branch August 23, 2022 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ENHANCEMENT] Make Get-PnPAccessToken work on all sites
2 participants