View Source
Class MemberSignInManager
The sign in manager for members
Assembly: Umbraco.Web.Common.dll
Syntax
public class MemberSignInManager : UmbracoSignInManager<MemberIdentityUser>, IMemberSignInManager
Constructors
View Source
MemberSignInManager(UserManager<MemberIdentityUser>, IHttpContextAccessor, IUserClaimsPrincipalFactory<MemberIdentityUser>, IOptions<IdentityOptions>, ILogger<SignInManager<MemberIdentityUser>>, IAuthenticationSchemeProvider, IUserConfirmation<MemberIdentityUser>, IMemberExternalLoginProviders, IEventAggregator, IOptions<SecuritySettings>, IRequestCache)
Declaration
public MemberSignInManager(UserManager<MemberIdentityUser> memberManager, IHttpContextAccessor contextAccessor, IUserClaimsPrincipalFactory<MemberIdentityUser> claimsFactory, IOptions<IdentityOptions> optionsAccessor, ILogger<SignInManager<MemberIdentityUser>> logger, IAuthenticationSchemeProvider schemes, IUserConfirmation<MemberIdentityUser> confirmation, IMemberExternalLoginProviders memberExternalLoginProviders, IEventAggregator eventAggregator, IOptions<SecuritySettings> securitySettings, IRequestCache requestCache)
Parameters
Properties
View Source
AllowConcurrentLoginsEnabled
Declaration
protected override bool AllowConcurrentLoginsEnabled { get; }
Property Value
View Source
AuthenticationType
Declaration
protected override string AuthenticationType { get; }
Property Value
View Source
ExternalAuthenticationType
Declaration
protected override string ExternalAuthenticationType { get; }
Property Value
View Source
TwoFactorAuthenticationType
Declaration
protected override string TwoFactorAuthenticationType { get; }
Property Value
View Source
TwoFactorRememberMeAuthenticationType
Declaration
protected override string TwoFactorRememberMeAuthenticationType { get; }
Property Value
Methods
View Source
Declaration
public override AuthenticationProperties ConfigureExternalAuthenticationProperties(string? provider, string? redirectUrl, string? userId = null)
Parameters
| Type |
Name |
Description |
| string |
provider |
|
| string |
redirectUrl |
|
| string |
userId |
|
Returns
| Type |
Description |
| AuthenticationProperties |
|
View Source
ExternalLoginSignInAsync(ExternalLoginInfo, bool, bool)
Custom ExternalLoginSignInAsync overload for handling external sign in with auto-linking
Declaration
public virtual Task<SignInResult> ExternalLoginSignInAsync(ExternalLoginInfo loginInfo, bool isPersistent, bool bypassTwoFactor = false)
Parameters
| Type |
Name |
Description |
| ExternalLoginInfo |
loginInfo |
|
| bool |
isPersistent |
|
| bool |
bypassTwoFactor |
|
Returns
| Type |
Description |
| Task<SignInResult> |
|
View Source
GetExternalLoginInfoAsync(string?)
Declaration
public override Task<ExternalLoginInfo?> GetExternalLoginInfoAsync(string? expectedXsrf = null)
Parameters
| Type |
Name |
Description |
| string |
expectedXsrf |
|
Returns
| Type |
Description |
| Task<ExternalLoginInfo> |
|
View Source
HandleFailedLinkingUser(MemberIdentityUser, IdentityResult)
Declaration
protected Task<MemberSignInManager.AutoLinkSignInResult> HandleFailedLinkingUser(MemberIdentityUser autoLinkUser, IdentityResult linkResult)
Parameters
Returns
View Source
NotifyRequiresTwoFactor(MemberIdentityUser)
Declaration
protected void NotifyRequiresTwoFactor(MemberIdentityUser user)
Parameters
View Source
SignInOrTwoFactorAsync(MemberIdentityUser, bool, string?, bool)
Declaration
protected override Task<SignInResult> SignInOrTwoFactorAsync(MemberIdentityUser user, bool isPersistent, string? loginProvider = null, bool bypassTwoFactor = false)
Parameters
| Type |
Name |
Description |
| MemberIdentityUser |
user |
|
| bool |
isPersistent |
|
| string |
loginProvider |
|
| bool |
bypassTwoFactor |
|
Returns
| Type |
Description |
| Task<SignInResult> |
|