Search Results for

    Show / Hide Table of Contents
    View Source

    Class BackOfficeUserManager

    Inheritance
    System.Object
    UmbracoUserManager<BackOfficeIdentityUser, UserPasswordConfigurationSettings>
    Namespace: Umbraco.Cms.Web.Common.Security
    Assembly: Umbraco.Web.Common.dll
    Syntax
    public class BackOfficeUserManager : UmbracoUserManager<BackOfficeIdentityUser, UserPasswordConfigurationSettings>, IBackOfficeUserManager, IUmbracoUserManager<BackOfficeIdentityUser>

    Constructors

    View Source

    BackOfficeUserManager(IIpResolver, IUserStore<BackOfficeIdentityUser>, IOptions<BackOfficeIdentityOptions>, IPasswordHasher<BackOfficeIdentityUser>, IEnumerable<IUserValidator<BackOfficeIdentityUser>>, IEnumerable<IPasswordValidator<BackOfficeIdentityUser>>, BackOfficeErrorDescriber, IServiceProvider, IHttpContextAccessor, ILogger<UserManager<BackOfficeIdentityUser>>, IOptions<UserPasswordConfigurationSettings>, IEventAggregator, IBackOfficeUserPasswordChecker)

    Declaration
    public BackOfficeUserManager(IIpResolver ipResolver, IUserStore<BackOfficeIdentityUser> store, IOptions<BackOfficeIdentityOptions> optionsAccessor, IPasswordHasher<BackOfficeIdentityUser> passwordHasher, IEnumerable<IUserValidator<BackOfficeIdentityUser>> userValidators, IEnumerable<IPasswordValidator<BackOfficeIdentityUser>> passwordValidators, BackOfficeErrorDescriber errors, IServiceProvider services, IHttpContextAccessor httpContextAccessor, ILogger<UserManager<BackOfficeIdentityUser>> logger, IOptions<UserPasswordConfigurationSettings> passwordConfiguration, IEventAggregator eventAggregator, IBackOfficeUserPasswordChecker backOfficeUserPasswordChecker)
    Parameters
    Type Name Description
    IIpResolver ipResolver
    Microsoft.AspNetCore.Identity.IUserStore<BackOfficeIdentityUser> store
    Microsoft.Extensions.Options.IOptions<BackOfficeIdentityOptions> optionsAccessor
    Microsoft.AspNetCore.Identity.IPasswordHasher<BackOfficeIdentityUser> passwordHasher
    System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Identity.IUserValidator<BackOfficeIdentityUser>> userValidators
    System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Identity.IPasswordValidator<BackOfficeIdentityUser>> passwordValidators
    BackOfficeErrorDescriber errors
    System.IServiceProvider services
    Microsoft.AspNetCore.Http.IHttpContextAccessor httpContextAccessor
    Microsoft.Extensions.Logging.ILogger<Microsoft.AspNetCore.Identity.UserManager<BackOfficeIdentityUser>> logger
    Microsoft.Extensions.Options.IOptions<UserPasswordConfigurationSettings> passwordConfiguration
    IEventAggregator eventAggregator
    IBackOfficeUserPasswordChecker backOfficeUserPasswordChecker

    Methods

    View Source

    AccessFailedAsync(BackOfficeIdentityUser)

    Declaration
    public override async Task<IdentityResult> AccessFailedAsync(BackOfficeIdentityUser user)
    Parameters
    Type Name Description
    BackOfficeIdentityUser user
    Returns
    Type Description
    System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
    View Source

    ChangePasswordAsync(BackOfficeIdentityUser, String, String)

    Declaration
    public override async Task<IdentityResult> ChangePasswordAsync(BackOfficeIdentityUser user, string currentPassword, string newPassword)
    Parameters
    Type Name Description
    BackOfficeIdentityUser user
    System.String currentPassword
    System.String newPassword
    Returns
    Type Description
    System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
    View Source

    ChangePasswordWithResetAsync(String, String, String)

    Declaration
    public override async Task<IdentityResult> ChangePasswordWithResetAsync(string userId, string token, string newPassword)
    Parameters
    Type Name Description
    System.String userId
    System.String token
    System.String newPassword
    Returns
    Type Description
    System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
    View Source

    IsLockedOutAsync(BackOfficeIdentityUser)

    Override to check the user approval value as well as the user lock out date, by default this only checks the user's locked out date

    Declaration
    public override async Task<bool> IsLockedOutAsync(BackOfficeIdentityUser user)
    Parameters
    Type Name Description
    BackOfficeIdentityUser user

    The user

    Returns
    Type Description
    System.Threading.Tasks.Task<System.Boolean>

    True if the user is locked out, else false

    Remarks

    In the ASP.NET Identity world, there is only one value for being locked out, in Umbraco we have 2 so when checking this for Umbraco we need to check both values

    View Source

    NotifyAccountLocked(IPrincipal, String)

    Declaration
    public void NotifyAccountLocked(IPrincipal currentUser, string userId)
    Parameters
    Type Name Description
    System.Security.Principal.IPrincipal currentUser
    System.String userId
    View Source

    NotifyAccountUnlocked(IPrincipal, String)

    Declaration
    public void NotifyAccountUnlocked(IPrincipal currentUser, string userId)
    Parameters
    Type Name Description
    System.Security.Principal.IPrincipal currentUser
    System.String userId
    View Source

    NotifyForgotPasswordChanged(IPrincipal, String)

    Declaration
    public void NotifyForgotPasswordChanged(IPrincipal currentUser, string userId)
    Parameters
    Type Name Description
    System.Security.Principal.IPrincipal currentUser
    System.String userId
    View Source

    NotifyForgotPasswordRequested(IPrincipal, String)

    Declaration
    public void NotifyForgotPasswordRequested(IPrincipal currentUser, string userId)
    Parameters
    Type Name Description
    System.Security.Principal.IPrincipal currentUser
    System.String userId
    View Source

    NotifyLoginFailed(IPrincipal, String)

    Declaration
    public void NotifyLoginFailed(IPrincipal currentUser, string userId)
    Parameters
    Type Name Description
    System.Security.Principal.IPrincipal currentUser
    System.String userId
    View Source

    NotifyLoginRequiresVerification(IPrincipal, String)

    Declaration
    public void NotifyLoginRequiresVerification(IPrincipal currentUser, string userId)
    Parameters
    Type Name Description
    System.Security.Principal.IPrincipal currentUser
    System.String userId
    View Source

    NotifyLoginSuccess(IPrincipal, String)

    Declaration
    public void NotifyLoginSuccess(IPrincipal currentUser, string userId)
    Parameters
    Type Name Description
    System.Security.Principal.IPrincipal currentUser
    System.String userId
    View Source

    NotifyLogoutSuccess(IPrincipal, String)

    Declaration
    public SignOutSuccessResult NotifyLogoutSuccess(IPrincipal currentUser, string userId)
    Parameters
    Type Name Description
    System.Security.Principal.IPrincipal currentUser
    System.String userId
    Returns
    Type Description
    SignOutSuccessResult
    View Source

    NotifyPasswordChanged(IPrincipal, String)

    Declaration
    public void NotifyPasswordChanged(IPrincipal currentUser, string userId)
    Parameters
    Type Name Description
    System.Security.Principal.IPrincipal currentUser
    System.String userId
    View Source

    NotifyPasswordReset(IPrincipal, String)

    Declaration
    public void NotifyPasswordReset(IPrincipal currentUser, string userId)
    Parameters
    Type Name Description
    System.Security.Principal.IPrincipal currentUser
    System.String userId
    View Source

    NotifyResetAccessFailedCount(IPrincipal, String)

    Declaration
    public void NotifyResetAccessFailedCount(IPrincipal currentUser, string userId)
    Parameters
    Type Name Description
    System.Security.Principal.IPrincipal currentUser
    System.String userId
    View Source

    ResetAccessFailedCountAsync(BackOfficeIdentityUser)

    Declaration
    public override async Task<IdentityResult> ResetAccessFailedCountAsync(BackOfficeIdentityUser user)
    Parameters
    Type Name Description
    BackOfficeIdentityUser user
    Returns
    Type Description
    System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
    View Source

    SetLockoutEndDateAsync(BackOfficeIdentityUser, Nullable<DateTimeOffset>)

    Declaration
    public override async Task<IdentityResult> SetLockoutEndDateAsync(BackOfficeIdentityUser user, DateTimeOffset? lockoutEnd)
    Parameters
    Type Name Description
    BackOfficeIdentityUser user
    System.Nullable<System.DateTimeOffset> lockoutEnd
    Returns
    Type Description
    System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
    View Source

    VerifyPasswordAsync(IUserPasswordStore<BackOfficeIdentityUser>, BackOfficeIdentityUser, String)

    Override to allow checking the password via the IBackOfficeUserPasswordChecker if one is configured

    Declaration
    protected override async Task<PasswordVerificationResult> VerifyPasswordAsync(IUserPasswordStore<BackOfficeIdentityUser> store, BackOfficeIdentityUser user, string password)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Identity.IUserPasswordStore<BackOfficeIdentityUser> store
    BackOfficeIdentityUser user
    System.String password
    Returns
    Type Description
    System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.PasswordVerificationResult>
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • BackOfficeUserManager(IIpResolver, IUserStore<BackOfficeIdentityUser>, IOptions<BackOfficeIdentityOptions>, IPasswordHasher<BackOfficeIdentityUser>, IEnumerable<IUserValidator<BackOfficeIdentityUser>>, IEnumerable<IPasswordValidator<BackOfficeIdentityUser>>, BackOfficeErrorDescriber, IServiceProvider, IHttpContextAccessor, ILogger<UserManager<BackOfficeIdentityUser>>, IOptions<UserPasswordConfigurationSettings>, IEventAggregator, IBackOfficeUserPasswordChecker)
    • Methods
      • AccessFailedAsync(BackOfficeIdentityUser)
      • ChangePasswordAsync(BackOfficeIdentityUser, String, String)
      • ChangePasswordWithResetAsync(String, String, String)
      • IsLockedOutAsync(BackOfficeIdentityUser)
      • NotifyAccountLocked(IPrincipal, String)
      • NotifyAccountUnlocked(IPrincipal, String)
      • NotifyForgotPasswordChanged(IPrincipal, String)
      • NotifyForgotPasswordRequested(IPrincipal, String)
      • NotifyLoginFailed(IPrincipal, String)
      • NotifyLoginRequiresVerification(IPrincipal, String)
      • NotifyLoginSuccess(IPrincipal, String)
      • NotifyLogoutSuccess(IPrincipal, String)
      • NotifyPasswordChanged(IPrincipal, String)
      • NotifyPasswordReset(IPrincipal, String)
      • NotifyResetAccessFailedCount(IPrincipal, String)
      • ResetAccessFailedCountAsync(BackOfficeIdentityUser)
      • SetLockoutEndDateAsync(BackOfficeIdentityUser, Nullable<DateTimeOffset>)
      • VerifyPasswordAsync(IUserPasswordStore<BackOfficeIdentityUser>, BackOfficeIdentityUser, String)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX