so I am trying to get my Angular Spring Authentication working for like 3 weeks now and I am totally stuck. Here is what I am trying to do:
I have an SSO Angular App, which uses the '@azure/msal-angular' dependency to authentication and authorize against my Azure Active Directory. That part is working completely fine at this point.
In addition to my frontend, I have a Spring-boot backend-application as a Web API. What I am trying to do is, use the JWT Tokens that my frontend got from the Azure Authentication Process and use that token to authentication the Rest Call.
I am not sure what the correct authentication flow is from here on. I have seen these 3 different example implementation which are all different:
https://github.com/Azure-Samples/ms-identity-java-webapp
https://github.com/jdubois/spring-active-directory
Not one of these implementations worked for my backend. So the question is: What is the correct way to build this authentication flow? Is there a valid tutorial/example implementation that I have not seen yet?