OIDC SSO: No roles came from token Error – How to Resolve?

0
Hi everyone, I'm using the OIDC SSO module in my Mendix application and have successfully configured the app in Azure AD. However, when I deploy the app and try to connect via SSO, I keep encountering the following error: "No roles came from token."   Has anyone faced this issue before, or does anyone have suggestions on how I can fix this ? Any guidance on token roles mapping or specific settings I should check would be much appreciated. Thanks in advance!
asked
1 answers
0

Hi peter,

Please follow the below OIDC SSO documentation to get roles in access token

https://docs.mendix.com/appstore/modules/oidc/#azure-portal

  • Make sure to assign the new role to user in Enterprise application->App->users and groups(Assign the role)
  • And the role should be added as a scope in OIDC SSO Configuration

ex:api://d99a49b9-95d7-410e-b79a-54ede8968065/8dd52bfa-6d7e-453b-b506-303c0a3d9567

The above example scope can be found in Expose an API

answered