Search Results for

    Show / Hide Table of Contents
    View Source

    Class BackOfficeUserManager

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

    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, IOptions<GlobalSettings>)

    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, IOptions<GlobalSettings> globalSettings)
    Parameters
    Type Name Description
    IIpResolver ipResolver
    Microsoft.AspNetCore.Identity.IUserStore<BackOfficeIdentityUser> store
    Microsoft.Extensions.Options.IOptions<BackOfficeIdentityOptions> optionsAccessor
    Microsoft.AspNetCore.Identity.IPasswordHasher<BackOfficeIdentityUser> passwordHasher
    IEnumerable<Microsoft.AspNetCore.Identity.IUserValidator<BackOfficeIdentityUser>> userValidators
    IEnumerable<Microsoft.AspNetCore.Identity.IPasswordValidator<BackOfficeIdentityUser>> passwordValidators
    BackOfficeErrorDescriber errors
    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
    Microsoft.Extensions.Options.IOptions<GlobalSettings> globalSettings

    Methods

    View Source

    AccessFailedAsync(BackOfficeIdentityUser)

    Declaration
    public override async Task<IdentityResult> AccessFailedAsync(BackOfficeIdentityUser user)
    Parameters
    Type Name Description
    BackOfficeIdentityUser user
    Returns
    Type Description
    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
    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
    Task<Microsoft.AspNetCore.Identity.IdentityResult>
    View Source

    CreateAsync(UserCreateModel)

    Declaration
    public async Task<IdentityCreationResult> CreateAsync(UserCreateModel createModel)
    Parameters
    Type Name Description
    UserCreateModel createModel
    Returns
    Type Description
    Task<IdentityCreationResult>
    View Source

    CreateForInvite(UserCreateModel)

    Declaration
    public async Task<IdentityCreationResult> CreateForInvite(UserCreateModel createModel)
    Parameters
    Type Name Description
    UserCreateModel createModel
    Returns
    Type Description
    Task<IdentityCreationResult>
    View Source

    GenerateEmailConfirmationTokenAsync(IUser)

    Declaration
    public async Task<Attempt<string, UserOperationStatus>> GenerateEmailConfirmationTokenAsync(IUser user)
    Parameters
    Type Name Description
    IUser user
    Returns
    Type Description
    Task<Attempt<System.String, UserOperationStatus>>
    View Source

    GeneratePasswordResetTokenAsync(IUser)

    Declaration
    public async Task<Attempt<string, UserOperationStatus>> GeneratePasswordResetTokenAsync(IUser user)
    Parameters
    Type Name Description
    IUser user
    Returns
    Type Description
    Task<Attempt<System.String, UserOperationStatus>>
    View Source

    GetLoginsAsync(IUser)

    Declaration
    public async Task<Attempt<ICollection<IIdentityUserLogin>, UserOperationStatus>> GetLoginsAsync(IUser user)
    Parameters
    Type Name Description
    IUser user
    Returns
    Type Description
    Task<Attempt<ICollection<IIdentityUserLogin>, UserOperationStatus>>
    View Source

    IsEmailConfirmationTokenValidAsync(IUser, String)

    Declaration
    public async Task<bool> IsEmailConfirmationTokenValidAsync(IUser user, string token)
    Parameters
    Type Name Description
    IUser user
    System.String token
    Returns
    Type Description
    Task<System.Boolean>
    View Source

    IsResetPasswordTokenValidAsync(IUser, String)

    Declaration
    public async Task<bool> IsResetPasswordTokenValidAsync(IUser user, string token)
    Parameters
    Type Name Description
    IUser user
    System.String token
    Returns
    Type Description
    Task<System.Boolean>
    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
    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<DateTimeOffset> lockoutEnd
    Returns
    Type Description
    Task<Microsoft.AspNetCore.Identity.IdentityResult>
    View Source

    UnlockUser(IUser)

    Declaration
    public async Task<Attempt<UserUnlockResult, UserOperationStatus>> UnlockUser(IUser user)
    Parameters
    Type Name Description
    IUser user
    Returns
    Type Description
    Task<Attempt<UserUnlockResult, UserOperationStatus>>
    View Source

    VerifyPasswordAsync(IUserPasswordStore<BackOfficeIdentityUser>, BackOfficeIdentityUser, String)

    Override to allow checking the password via the 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
    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, IOptions<GlobalSettings>)
    • Methods
      • AccessFailedAsync(BackOfficeIdentityUser)
      • ChangePasswordAsync(BackOfficeIdentityUser, String, String)
      • ChangePasswordWithResetAsync(String, String, String)
      • CreateAsync(UserCreateModel)
      • CreateForInvite(UserCreateModel)
      • GenerateEmailConfirmationTokenAsync(IUser)
      • GeneratePasswordResetTokenAsync(IUser)
      • GetLoginsAsync(IUser)
      • IsEmailConfirmationTokenValidAsync(IUser, String)
      • IsResetPasswordTokenValidAsync(IUser, String)
      • 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>)
      • UnlockUser(IUser)
      • VerifyPasswordAsync(IUserPasswordStore<BackOfficeIdentityUser>, BackOfficeIdentityUser, String)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX