Table of Contents

Class ClaimsPrincipalFactory<TUser>

Namespace
Oqtane.Security
Assembly
Oqtane.Server.dll
public class ClaimsPrincipalFactory<TUser> : UserClaimsPrincipalFactory<TUser> where TUser : IdentityUser

Type Parameters

TUser
Inheritance
object
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 ITenantManager
users IUserRepository
userroles 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.