Followed countless tutorials regarding this scenario.
https://learn.microsoft.com/en-us/azure/active-directory/develop/scenario-spa-app-registration
We have an Angular front end, talking to a .net core API.
We have set up the application in Azure as an SPA, created roles, and assigned users to those roles.
We have installed MSAL for angular, and implemented pop up authentication. All working, and a custom guard to protect against different roles with different access..
The issue comes when accessing the API, as we would like to 1.secure the API 2.use the same token with the same roles etc as the angular application
The samples above all suggested creating a secondary application within Azure, but these will have different roles and not relate to the front end Surly there must be a simple way to implement this?