I have some trouble understanding the MSAL authentication and authorization. I have a single page app developed in React. I have setup the MSAL Azure SSO authentication by registering the web app on the Azure AD. Now, I have a Web API (in .Net Core) which is running on a separate app service. How do I integrate the authentication from my React app to the Web API?
Few questions coming to mind:
- Do I have to register the Web API app as well similar to my React app?
- Do I have to pass the auth token from my React App to the Web API?
- Do I have to setup the authentication only on the Web API side (using MSAL.Net) and the React App will connect to it?
Please share your thoughts. Let me know if I can explain any better.
react-adal
packgae, please go through this article which explains implementation using react and .Net link – Sumanth Madishetty