Skip to content

Fix: Role claim type#280

Open
IdsTeepe wants to merge 1 commit intoskoruba:release/3.1.0-previewfrom
IdsTeepe:fix/roleclaimtype
Open

Fix: Role claim type#280
IdsTeepe wants to merge 1 commit intoskoruba:release/3.1.0-previewfrom
IdsTeepe:fix/roleclaimtype

Conversation

@IdsTeepe
Copy link

Although Duende IdentityServer by default uses "role" as a role claim type, this can be configured to be something else. Currently, Duende.IdentityServer.Admin (3.x preview) does not support this, as the authorization policy in the underlying API checks for a claim with type JwtClaimTypes.Role (i.e. "role") instead of setting the correct Role Claim Type.

By fixing this, users using a different claim type for roles can also override this in their Duende.IdentityServer.Admin by configuring their JwtBearerOptions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant