0
votes

I have an application with a React FrontEnd and a spring boot backend. Here is my problem: I have to autorize my frontend in my back with my microsoft token. From here I manage to :

  1. From my front page when I click on my login button it redirect me to azure connection portal (I used msal.js library)

  2. After the redirection, I have an access token.

Now, I want to send this access token to my back (something like /api/auth), call the microsoft graph api to retrieve users informations, create the user in my DataBase if he doesn't exists and then return information with a token that will allow my front to be authorized when it requests protected endpoints

1

1 Answers

0
votes

Spring Security can be used to validate the token, you can take a look at this sample.