question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I would like to Generate AccessToken from MSAL.Net For Both MicrosoftGraph and SharePoint Online

See original GitHub issue

I 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:closed
  • Created 4 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

0reactions
anomepanicommented, Oct 22, 2019

Thanks to @jmprieur I will look into the provided reference link.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found