Search Results for

    Show / Hide Table of Contents
    View Source

    Class MemberSignInManager

    The sign in manager for members

    Inheritance
    object
    SignInManager<MemberIdentityUser>
    UmbracoSignInManager<MemberIdentityUser>
    Namespace: Umbraco.Cms.Web.Common.Security
    Assembly: Umbraco.Web.Common.dll
    Syntax
    public class MemberSignInManager : UmbracoSignInManager<MemberIdentityUser>, IMemberSignInManager

    Constructors

    View Source

    MemberSignInManager(UserManager<MemberIdentityUser>, IHttpContextAccessor, IUserClaimsPrincipalFactory<MemberIdentityUser>, IOptions<IdentityOptions>, ILogger<SignInManager<MemberIdentityUser>>, IAuthenticationSchemeProvider, IUserConfirmation<MemberIdentityUser>, IMemberExternalLoginProviders, IEventAggregator, IOptions<SecuritySettings>, IRequestCache)

    Declaration
    public MemberSignInManager(UserManager<MemberIdentityUser> memberManager, IHttpContextAccessor contextAccessor, IUserClaimsPrincipalFactory<MemberIdentityUser> claimsFactory, IOptions<IdentityOptions> optionsAccessor, ILogger<SignInManager<MemberIdentityUser>> logger, IAuthenticationSchemeProvider schemes, IUserConfirmation<MemberIdentityUser> confirmation, IMemberExternalLoginProviders memberExternalLoginProviders, IEventAggregator eventAggregator, IOptions<SecuritySettings> securitySettings, IRequestCache requestCache)
    Parameters
    Type Name Description
    UserManager<MemberIdentityUser> memberManager
    IHttpContextAccessor contextAccessor
    IUserClaimsPrincipalFactory<MemberIdentityUser> claimsFactory
    IOptions<IdentityOptions> optionsAccessor
    ILogger<SignInManager<MemberIdentityUser>> logger
    IAuthenticationSchemeProvider schemes
    IUserConfirmation<MemberIdentityUser> confirmation
    IMemberExternalLoginProviders memberExternalLoginProviders
    IEventAggregator eventAggregator
    IOptions<SecuritySettings> securitySettings
    IRequestCache requestCache

    Properties

    View Source

    AllowConcurrentLoginsEnabled

    Declaration
    protected override bool AllowConcurrentLoginsEnabled { get; }
    Property Value
    Type Description
    bool
    View Source

    AuthenticationType

    Declaration
    protected override string AuthenticationType { get; }
    Property Value
    Type Description
    string
    View Source

    ExternalAuthenticationType

    Declaration
    protected override string ExternalAuthenticationType { get; }
    Property Value
    Type Description
    string
    View Source

    TwoFactorAuthenticationType

    Declaration
    protected override string TwoFactorAuthenticationType { get; }
    Property Value
    Type Description
    string
    View Source

    TwoFactorRememberMeAuthenticationType

    Declaration
    protected override string TwoFactorRememberMeAuthenticationType { get; }
    Property Value
    Type Description
    string

    Methods

    View Source

    ConfigureExternalAuthenticationProperties(string?, string?, string?)

    Declaration
    public override AuthenticationProperties ConfigureExternalAuthenticationProperties(string? provider, string? redirectUrl, string? userId = null)
    Parameters
    Type Name Description
    string provider
    string redirectUrl
    string userId
    Returns
    Type Description
    AuthenticationProperties
    View Source

    ExternalLoginSignInAsync(ExternalLoginInfo, bool, bool)

    Custom ExternalLoginSignInAsync overload for handling external sign in with auto-linking

    Declaration
    public virtual Task<SignInResult> ExternalLoginSignInAsync(ExternalLoginInfo loginInfo, bool isPersistent, bool bypassTwoFactor = false)
    Parameters
    Type Name Description
    ExternalLoginInfo loginInfo
    bool isPersistent
    bool bypassTwoFactor
    Returns
    Type Description
    Task<SignInResult>
    View Source

    GetExternalLoginInfoAsync(string?)

    Declaration
    public override Task<ExternalLoginInfo?> GetExternalLoginInfoAsync(string? expectedXsrf = null)
    Parameters
    Type Name Description
    string expectedXsrf
    Returns
    Type Description
    Task<ExternalLoginInfo>
    View Source

    HandleFailedLinkingUser(MemberIdentityUser, IdentityResult)

    Declaration
    protected Task<MemberSignInManager.AutoLinkSignInResult> HandleFailedLinkingUser(MemberIdentityUser autoLinkUser, IdentityResult linkResult)
    Parameters
    Type Name Description
    MemberIdentityUser autoLinkUser
    IdentityResult linkResult
    Returns
    Type Description
    Task<MemberSignInManager.AutoLinkSignInResult>
    View Source

    NotifyRequiresTwoFactor(MemberIdentityUser)

    Declaration
    protected void NotifyRequiresTwoFactor(MemberIdentityUser user)
    Parameters
    Type Name Description
    MemberIdentityUser user
    View Source

    SignInOrTwoFactorAsync(MemberIdentityUser, bool, string?, bool)

    Declaration
    protected override Task<SignInResult> SignInOrTwoFactorAsync(MemberIdentityUser user, bool isPersistent, string? loginProvider = null, bool bypassTwoFactor = false)
    Parameters
    Type Name Description
    MemberIdentityUser user
    bool isPersistent
    string loginProvider
    bool bypassTwoFactor
    Returns
    Type Description
    Task<SignInResult>
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX