-
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
|
Beta Was this translation helpful? Give feedback.
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 |
Beta Was this translation helpful? Give feedback.
-
@Kyemate The PR just merged, and we didn't publish any release/prerelease for it. |
Beta Was this translation helpful? Give feedback.
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