I created an application in Azure AD from a manifest with several appRoles
inside it, and I can assign users to these roles. After the user completes single sign-on, he will return to my application, and then I will ask him to use JSON Web Token. The problem is that the token that I get from Azure has no assigned roles, as this assumes what is supposed to be here .
Is there a configuration option that I skip, or is there an alternative way to find out their assigned role through the Azure API?
Update:
After specifying resource
as the URI of the application identifier when I requested the authorization URL, I managed to get a little further.
Now I am returning the following error (in the return URL):
"The signed in user '<user email>' is not assigned to a role for the application '<app client id>'."
The user was definitely assigned a role in the Azure AD control panel for the application, and the application client identifier in the error message exactly matches the application client identifier.
Application Configuration:

The user has assigned a role:

Error message after logging in and returning to the application:

source share