I am emulating a SPA (single page application) by adapting this .net core asp-net-core template (https://github.com/TrilonIO/aspnetcore-Vue-starter/blob/master/content/Vue2Spa.sln)
I am able to authenticate the user using MSAL for microsoft graph.
How can I use that same token I used for Microsoft graph for my API (same project, no CORS necessary).
Everything I try fails.
What should StartUp look like? I don't want any cookie authentication, i have the AccessToken ready to pass as a JWT token.?
I'd like to use [Authorize] in my API controllers.
SPA --> Gets Token (it's based off my clientId etc), pass token 'Bearer eyJ0eXAiO....' with AJAX calls to my api controllers.