azure active directory – How to call Microsoft Graph API from ASP.NET Core Web API that is called by SPA
I have an Angular SPA and an ASP.NET Core Web API backend. I have an Azure application registration which the SPA is configured to use, and I can make Graph API calls from the SPA directly using @azure/msal-angular
and @microsoft/microsoft-graph-client
.
What I want to do now is have the SPA call the Web API, and for the Web API to make the Graph API calls on behalf of the logged in user.
I’ve waded through reams of documentation but I’ve not been able to find a complete tutorial for this scenario or find a definitive answer to a key question.
Which is, do I need a separate app registration for the SPA and the ASP.NET Core Web API, or do I need a single application registration with two platforms configured?
Read more here: Source link