Class ClaimsPrincipalFactory<TUser>
public class ClaimsPrincipalFactory<TUser> : UserClaimsPrincipalFactory<TUser> where TUser : IdentityUser
Type Parameters
TUser
- Inheritance
-
UserClaimsPrincipalFactory<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 Task that represents the asynchronous creation operation, containing the created ClaimsIdentity.