Class MemberClaimsPrincipalFactory
A Microsoft.AspNetCore.Identity.UserClaimsPrincipalFactory<TUser> for members
Inheritance
System.Object
Microsoft.AspNetCore.Identity.UserClaimsPrincipalFactory<MemberIdentityUser>
Namespace: Umbraco.Cms.Web.Common.Security
Assembly: Umbraco.Web.Common.dll
Syntax
public class MemberClaimsPrincipalFactory : UserClaimsPrincipalFactory<MemberIdentityUser>, IUserClaimsPrincipalFactory<MemberIdentityUser>
Constructors
View SourceMemberClaimsPrincipalFactory(UserManager<MemberIdentityUser>, IOptions<IdentityOptions>)
Initializes a new instance of the
Declaration
public MemberClaimsPrincipalFactory(UserManager<MemberIdentityUser> userManager, IOptions<IdentityOptions> optionsAccessor)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Identity.UserManager<MemberIdentityUser> | userManager | The user manager |
Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Identity.IdentityOptions> | optionsAccessor | The |
Properties
View SourceAuthenticationType
Declaration
protected virtual string AuthenticationType { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
View SourceGenerateClaimsAsync(MemberIdentityUser)
Declaration
protected override async Task<ClaimsIdentity> GenerateClaimsAsync(MemberIdentityUser user)
Parameters
Type | Name | Description |
---|---|---|
MemberIdentityUser | user |
Returns
Type | Description |
---|---|
Task<System.Security.Claims.ClaimsIdentity> |