View Source
Interface IBackOfficeSignInManager
A Microsoft.AspNetCore.Identity.SignInManager<TUser> for the back office with a
Assembly: Umbraco.Web.Common.dll
Syntax
public interface IBackOfficeSignInManager
Methods
View Source
Declaration
AuthenticationProperties ConfigureExternalAuthenticationProperties(string provider, string redirectUrl, string userId = null)
Parameters
Type |
Name |
Description |
System.String |
provider |
|
System.String |
redirectUrl |
|
System.String |
userId |
|
Returns
Type |
Description |
Microsoft.AspNetCore.Authentication.AuthenticationProperties |
|
View Source
CreateUserPrincipalAsync(BackOfficeIdentityUser)
Declaration
Task<ClaimsPrincipal> CreateUserPrincipalAsync(BackOfficeIdentityUser user)
Parameters
Type |
Name |
Description |
BackOfficeIdentityUser |
user |
|
Returns
Type |
Description |
Task<System.Security.Claims.ClaimsPrincipal> |
|
View Source
ExternalLoginSignInAsync(ExternalLoginInfo, Boolean, Boolean)
Declaration
Task<SignInResult> ExternalLoginSignInAsync(ExternalLoginInfo loginInfo, bool isPersistent, bool bypassTwoFactor = false)
Parameters
Type |
Name |
Description |
Microsoft.AspNetCore.Identity.ExternalLoginInfo |
loginInfo |
|
System.Boolean |
isPersistent |
|
System.Boolean |
bypassTwoFactor |
|
Returns
Type |
Description |
Task<Microsoft.AspNetCore.Identity.SignInResult> |
|
View Source
GetExternalAuthenticationSchemesAsync()
Declaration
Task<IEnumerable<AuthenticationScheme>> GetExternalAuthenticationSchemesAsync()
Returns
Type |
Description |
Task<IEnumerable<Microsoft.AspNetCore.Authentication.AuthenticationScheme>> |
|
View Source
GetExternalLoginInfoAsync(String)
Declaration
Task<ExternalLoginInfo> GetExternalLoginInfoAsync(string expectedXsrf = null)
Parameters
Type |
Name |
Description |
System.String |
expectedXsrf |
|
Returns
Type |
Description |
Task<Microsoft.AspNetCore.Identity.ExternalLoginInfo> |
|
View Source
GetTwoFactorAuthenticationUserAsync()
Declaration
Task<BackOfficeIdentityUser?> GetTwoFactorAuthenticationUserAsync()
Returns
Type |
Description |
Task<System.Nullable<BackOfficeIdentityUser>> |
|
View Source
PasswordSignInAsync(String, String, Boolean, Boolean)
Declaration
Task<SignInResult> PasswordSignInAsync(string userName, string password, bool isPersistent, bool lockoutOnFailure)
Parameters
Type |
Name |
Description |
System.String |
userName |
|
System.String |
password |
|
System.Boolean |
isPersistent |
|
System.Boolean |
lockoutOnFailure |
|
Returns
Type |
Description |
Task<Microsoft.AspNetCore.Identity.SignInResult> |
|
View Source
SignInAsync(BackOfficeIdentityUser, Boolean, String)
Declaration
Task SignInAsync(BackOfficeIdentityUser user, bool isPersistent, string authenticationMethod = null)
Parameters
Type |
Name |
Description |
BackOfficeIdentityUser |
user |
|
System.Boolean |
isPersistent |
|
System.String |
authenticationMethod |
|
Returns
View Source
SignOutAsync()
Declaration
Returns
View Source
TwoFactorSignInAsync(String, String, Boolean, Boolean)
Declaration
Task<SignInResult> TwoFactorSignInAsync(string provider, string code, bool isPersistent, bool rememberClient)
Parameters
Type |
Name |
Description |
System.String |
provider |
|
System.String |
code |
|
System.Boolean |
isPersistent |
|
System.Boolean |
rememberClient |
|
Returns
Type |
Description |
Task<Microsoft.AspNetCore.Identity.SignInResult> |
|
View Source
UpdateExternalAuthenticationTokensAsync(ExternalLoginInfo)
Declaration
Task<IdentityResult> UpdateExternalAuthenticationTokensAsync(ExternalLoginInfo externalLogin)
Parameters
Type |
Name |
Description |
Microsoft.AspNetCore.Identity.ExternalLoginInfo |
externalLogin |
|
Returns
Type |
Description |
Task<Microsoft.AspNetCore.Identity.IdentityResult> |
|