View Source
Class BackOfficeSignInManager
Inheritance
System.Object
Assembly: Umbraco.Web.dll
Syntax
public class BackOfficeSignInManager : SignInManager<BackOfficeIdentityUser, int>
Constructors
View Source
BackOfficeSignInManager(UserManager<BackOfficeIdentityUser, Int32>, IAuthenticationManager, ILogger, IGlobalSettings, IOwinRequest)
Declaration
public BackOfficeSignInManager(UserManager<BackOfficeIdentityUser, int> userManager, IAuthenticationManager authenticationManager, ILogger logger, IGlobalSettings globalSettings, IOwinRequest request)
Parameters
Type |
Name |
Description |
UserManager<BackOfficeIdentityUser, System.Int32> |
userManager |
|
IAuthenticationManager |
authenticationManager |
|
ILogger |
logger |
|
IGlobalSettings |
globalSettings |
|
IOwinRequest |
request |
|
Methods
View Source
Create(IdentityFactoryOptions<BackOfficeSignInManager>, IOwinContext, IGlobalSettings, ILogger)
Declaration
public static BackOfficeSignInManager Create(IdentityFactoryOptions<BackOfficeSignInManager> options, IOwinContext context, IGlobalSettings globalSettings, ILogger logger)
Parameters
Returns
View Source
CreateUserIdentityAsync(BackOfficeIdentityUser)
Declaration
public override Task<ClaimsIdentity> CreateUserIdentityAsync(BackOfficeIdentityUser user)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Security.Claims.ClaimsIdentity> |
|
View Source
GetVerifiedUserIdAsync()
Get the user id that has been verified already or int.MinValue if the user has not been verified yet
Declaration
public async Task<int> GetVerifiedUserIdAsync()
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Int32> |
|
View Source
GetVerifiedUserNameAsync()
Get the username that has been verified already or null.
Declaration
public async Task<string> GetVerifiedUserNameAsync()
Returns
Type |
Description |
System.Threading.Tasks.Task<System.String> |
|
View Source
PasswordSignInAsync(String, String, Boolean, Boolean)
Sign in the user in using the user name and password
Declaration
public override async Task<SignInStatus> PasswordSignInAsync(string userName, string password, bool isPersistent, bool shouldLockout)
Parameters
Type |
Name |
Description |
System.String |
userName |
|
System.String |
password |
|
System.Boolean |
isPersistent |
|
System.Boolean |
shouldLockout |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<SignInStatus> |
|
View Source
SendTwoFactorCodeAsync(String)
Send a two factor code to a user
Declaration
public override async Task<bool> SendTwoFactorCodeAsync(string provider)
Parameters
Type |
Name |
Description |
System.String |
provider |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Boolean> |
|
View Source
SignInAsync(BackOfficeIdentityUser, Boolean, Boolean)
Creates a user identity and then signs the identity using the AuthenticationManager
Declaration
public override async Task SignInAsync(BackOfficeIdentityUser user, bool isPersistent, bool rememberBrowser)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
View Source
TwoFactorSignInAsync(String, String, Boolean, Boolean)
Two factor verification step
Declaration
public override async Task<SignInStatus> TwoFactorSignInAsync(string provider, string code, bool isPersistent, bool rememberBrowser)
Parameters
Type |
Name |
Description |
System.String |
provider |
|
System.String |
code |
|
System.Boolean |
isPersistent |
|
System.Boolean |
rememberBrowser |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<SignInStatus> |
|