View Source
Class BackOfficeUserManager
Inheritance
System.Object
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)
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 |
|
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 |
|
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
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 |
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
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
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> |
|