Trying to implement the following scenario:
Have an (SPA React) app running on myapp.com, for which a user needs to be logged in to do anything. This part is pretty straight forward and I got it working by following the React API docs.
Now I would like to add a myapp.com/admin section to the site, where only “Admin” have access. Admin are defined using a separate (enterprise) connection compared to normal users who log in using a different OIDC connection.
How does one go about doing this? Do I need to create 2 separate Applications in auth0, or can it all be done in a single Application? Any examples of this anywhere? What I am trying to create is very similar to how Github protects certain parts of the app and requires an admin to login before proceeding.