I would like to Generate AccessToken from MSAL.Net For Both MicrosoftGraph and SharePoint Online
See original GitHub issueI would like to Generate AccessToken from MSAL.Net For Both MicrosoftGraph and SharePoint Online using Delegated permission based on logged in user.
I have added permission for Both Microsoft Graph and Sharepoint Online.
Using Generated token I am able to access Microsoft Graph Endpoint but not able to get data from SharePoint.
It is giving me the error: {"error_description":"Invalid issuer or signature."}
Is there any working demo sample that can show us how to get a token for multiple Resource? I have seen the option “Resource” available in ADAL.NET but a similar option not available in MSAL.NET.
Thanks in advance
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Acquire and cache tokens with Microsoft Authentication ...
MSAL caches a token after it's been acquired. Your application code should first try to get a token silently from the cache before...
Read more >Get access on behalf of a user - Microsoft Graph
Learn how an app obtains an access token from the Microsoft identity platform and calls Microsoft Graph on behalf of a user.
Read more >get valid auth token from MSAL for SP Online?
I'm in the middle of writing a .Net client app and have been using the latest Graph SDK to access OneDrive. To authenticate,...
Read more >Authentication and authorization basics - Microsoft Graph
To call Microsoft Graph, you must register your app with the Microsoft identity platform, request permissions, and acquire an access token.
Read more >Get access without a user - Microsoft Graph
Learn how an app obtains an access token from the Microsoft identity platform and calls Microsoft Graph with its own identity.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@anomepani : it depends on the token cache serialization you use. See https://github.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/blob/master/Microsoft.Identity.Web/README.md#token-cache-serialization for examples.
Thanks to @jmprieur I will look into the provided reference link.