I'm going to implement a multi-page React application in the same domain:
The user can access each app or both with a single login.
/app1
, he will be asked to login (in Azure AD B2C)app1
app1
, show 404app1
app2
, he can go to app2
anytime without asking to login (or silent log in could work either)What I'm going to do is attach the app's permissions in MSAL access_token
, using Custom Policy with Restful Technical Profile. So, when the user goes to an app, the app reads access_token and decides if the user permission has permission or not.
I'm asking if there's a proper or better way to do as requirements.
yeah this should work well! Maybe don't use a 404 though. I would explain why the user doesn't have access so they can request it if needed.