Search Results for

    Show / Hide Table of Contents
    View Source

    Class BackOfficeClaimsPrincipalFactory

    A Microsoft.AspNetCore.Identity.UserClaimsPrincipalFactory<TUser> for the back office

    Inheritance
    object
    UserClaimsPrincipalFactory<BackOfficeIdentityUser>
    Namespace: Umbraco.Cms.Core.Security
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public class BackOfficeClaimsPrincipalFactory : UserClaimsPrincipalFactory<BackOfficeIdentityUser>

    Constructors

    View Source

    BackOfficeClaimsPrincipalFactory(UserManager<BackOfficeIdentityUser>, IOptions<BackOfficeIdentityOptions>, IOptions<BackOfficeAuthenticationTypeSettings>)

    Initializes a new instance of the BackOfficeClaimsPrincipalFactory class.

    Declaration
    public BackOfficeClaimsPrincipalFactory(UserManager<BackOfficeIdentityUser> userManager, IOptions<BackOfficeIdentityOptions> optionsAccessor, IOptions<BackOfficeAuthenticationTypeSettings> backOfficeAuthenticationTypeSettings)
    Parameters
    Type Name Description
    UserManager<BackOfficeIdentityUser> userManager

    The user manager

    IOptions<BackOfficeIdentityOptions> optionsAccessor

    The BackOfficeIdentityOptions

    IOptions<BackOfficeAuthenticationTypeSettings> backOfficeAuthenticationTypeSettings

    Properties

    View Source

    AuthenticationType

    Declaration
    protected virtual string AuthenticationType { get; }
    Property Value
    Type Description
    string

    Methods

    View Source

    GenerateClaimsAsync(BackOfficeIdentityUser)

    Generate the claims for a user.

    Declaration
    protected override Task<ClaimsIdentity> GenerateClaimsAsync(BackOfficeIdentityUser user)
    Parameters
    Type Name Description
    BackOfficeIdentityUser user

    The user to create a System.Security.Claims.ClaimsIdentity from.

    Returns
    Type Description
    Task<ClaimsIdentity>

    The System.Threading.Tasks.Task that represents the asynchronous creation operation, containing the created System.Security.Claims.ClaimsIdentity.

    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX