Azure AD B2B with MSAL - Angular app is able to authenticate the user and gets the token. Now angular app needs to call APIs (spring boot with MSAL library). How can this token be validated against Azure AD?
Azure AD B2B with MSAL - Angular app is able to authenticate the user and gets the token. Now angular app needs to call APIs (spring boot with MSAL library). How can this token be validated against Azure AD?
You get the token from Azure AD. In order to pass it on to your (Spring Boot) backend, an MSAL Interceptor is helpful. The auth code flow is nicely shown here: https://docs.microsoft.com/en-us/azure/active-directory/develop/tutorial-v2-angular-auth-code
The interceptor than adds the token to all outgoing API calls, that you send via HttpClient.