|
I updated the AppUserClaimsPrincipalFactory to include the roles and while debugging the roles are included into the ClaimsIdentity. Edit I tried to access the roles in the identitycontroller sign in with this code and also here it didn't return any roles |
Answered by
Kyemate
Nov 6, 2024
Replies: 2 comments 16 replies
|
As far as I know, database's user roles and user claims tables values are automatically stored in jwt token |
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

This seems to be a better solution. Seems to be a microsoft problem...
https://nestenius.se/net/debugging-jwtbearer-claim-problems-in-asp-net-core/
https://stackoverflow.com/questions/77548311/role-claim-not-working-in-asp-net-core-8-web-api-after-upgrading-to-net-8