I am writing a Blazorwasm application (ie. an API and a blazorwasm client) that
- Uses Azure Active Directory for authentication
- Uses custom role based authorization (eg. from a table
userswith user IDs (from Azure) and the custom roles in the app database)
Background: The reason I can't use Azure Active Directory for authorization, is that the Azure administrators are not willing to give the app the necessary Azure privilege to assign roles to users.
Conceptually, how do I do this?
Specific questions:
- In the client I can check whether or not the user is logged in with Azure Active Directory from the JWT, but how do I also check which roles the user has, do I have to make the server create another JWT and keep track of two JWTs in the client?