Replies: 1 comment 1 reply
-
|
Yes @ebejko it’s intentional |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When configuring identity through AddIdentityCore and using a custom store that implements IUserRoleStore, role claims are ignored during the ClaimsPrincipal creation. UserManager exposes SupportsUserRole and GetRolesAsync, which abstract the underlying IUserRoleStore, but they are not used. To include roles in the ClaimsPrincipal, the framework requires switching to UserClaimsPrincipalFactory<TUser, TRole> or implementing a custom factory.
Is there a specific architectural reason why role claims are tied to the presence of RoleManager with a TRole enitty and not to the IUserRoleStore?
Beta Was this translation helpful? Give feedback.
All reactions