View Source
Class BackOfficeUserManager
Inheritance
System.Object
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
Methods
View Source
AccessFailedAsync(BackOfficeIdentityUser)
Declaration
public override async Task<IdentityResult> AccessFailedAsync(BackOfficeIdentityUser user)
Parameters
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
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
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
Returns
Type |
Description |
Task<System.Boolean> |
True if the user is locked out, else false
|
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
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
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
Returns
Type |
Description |
Task<Microsoft.AspNetCore.Identity.IdentityResult> |
|
View Source
VerifyPasswordAsync(IUserPasswordStore<BackOfficeIdentityUser>, BackOfficeIdentityUser, String)
Declaration
protected override async Task<PasswordVerificationResult> VerifyPasswordAsync(IUserPasswordStore<BackOfficeIdentityUser> store, BackOfficeIdentityUser user, string password)
Parameters
Returns
Type |
Description |
Task<Microsoft.AspNetCore.Identity.PasswordVerificationResult> |
|