You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While implementing I noticed that TokenValidationClaimRole is only available in the Admin-UI Project.
The API authorization looks like this where JwtClaimTypes.Role defaults to "role". In many cases, however, the actual role claim may be different..? (at least in my case..)
Would be great if it was possible to also have something like TokenValidationClaimRole together with the already existing AdministrationRole in the API's appsettings.json to be able to configure admin-rights even better.. :)
The text was updated successfully, but these errors were encountered:
Exactly, but that only let’s you define the role-value.. the name (or key) of the role claim is JwtClaimTypes.Role which is the constant string "role".
Then again if #478 is the current idea, you would probably just have one setting file where you can specify both the role-claim and the actual role-value.. just as in the Admin project. ^^
Hi,
While implementing I noticed that
TokenValidationClaimRole
is only available in the Admin-UI Project.The API authorization looks like this where
JwtClaimTypes.Role
defaults to "role". In many cases, however, the actual role claim may be different..? (at least in my case..)Would be great if it was possible to also have something like
TokenValidationClaimRole
together with the already existingAdministrationRole
in the API'sappsettings.json
to be able to configure admin-rights even better.. :)The text was updated successfully, but these errors were encountered: