Forgive me if I use the wrong terminology. I am not the most experienced developer but I am trying to get a better understanding of using AzureAD with my React (Front End) and Flask (Back End) applications.
I am using Flask to use API routes for some data calculations that I return to my frontend for display. I was tasked to authenticate the application, and we happen to use Azure at our company.
On the React App, I followed this https://learn.microsoft.com/en-us/azure/active-directory/develop/tutorial-v2-react
tutorial that I was able to see a token response. I set that up as a header in my API calls on the front end, and I can confirm and see just the token header it looks like on my flask backend.
Example Header
headers: {
Authenticaton: `Bearer ${accessToken}`,
},
I am not too sure what I am supposed to do with the token, I was trying to ensure that the signed-in user, could access those routes. However, I have no idea how the token would get validated. Microsoft grants this token, so from what I was thinking is that Flask would talk to Microsoft Azure, and confirm that token is legit.
If anyone has some good tips, or tutorials, or just can explain this better to me I would greatly appreciate it.
I can always try to provide code if need be, but I am also just more so stuck on the existing architecture of this. Thank you