Class ClaimsPrincipalFactory<TUser>
public class ClaimsPrincipalFactory<TUser> : UserClaimsPrincipalFactory<TUser> where TUser : IdentityUser
Type Parameters
TUser
- Inheritance
-
objectUserClaimsPrincipalFactory<TUser>ClaimsPrincipalFactory<TUser>
Constructors
ClaimsPrincipalFactory(UserManager<TUser>, IOptions<IdentityOptions>, ITenantManager, IUserRepository, IUserRoleRepository)
public ClaimsPrincipalFactory(UserManager<TUser> userManager, IOptions<IdentityOptions> optionsAccessor, ITenantManager tenants, IUserRepository users, IUserRoleRepository userroles)
Parameters
userManager
UserManager<TUser>optionsAccessor
IOptions<IdentityOptions>tenants
ITenantManagerusers
IUserRepositoryuserroles
IUserRoleRepository
Methods
GenerateClaimsAsync(TUser)
Generate the claims for a user.
protected override Task<ClaimsIdentity> GenerateClaimsAsync(TUser identityuser)
Parameters
identityuser
TUser
Returns
- Task<ClaimsIdentity>
The System.Threading.Tasks.Task that represents the asynchronous creation operation, containing the created System.Security.Claims.ClaimsIdentity.