Open jasonpincin opened 11 months ago
Yep this is fine, will add.
While I have you, is the roles parameter name returned in the discovery endpoint?
https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata
Cursory review says no 😞
No; it can only be done with a custom claim in Auth0 (via an "Action"). There's no way for it to know and advertise it via the discovery endpoint (that I know of).
Authentikat for example returns "groups" instead of roles.
Authentikat for example returns "groups" instead of roles.
So does allianceauth-oidc-provider
It would be awesome if we could specify an alternative roles field. Some oauth2 providers do not allow
roles
to be set, but rather insist on name-spacing the roles field (looking at you Auth0). Perhaps in the UI, within theAdjustments
section, similar to how you have anAlternative id key
field, there could be anAlternative roles key
field? Or even just aRoles namespace
,As a concrete example, the
userinfo
endpoint for our implementation returns a payload that contains the following: