SignInManager<TUser> Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides the APIs for user sign in.
generic <typename TUser>
where TUser : classpublic ref class SignInManager
public class SignInManager<TUser> where TUser : class
type SignInManager<'User (requires 'User : null)> = class
Public Class SignInManager(Of TUser)
Type Parameters
- TUser
The type encapsulating a user.
- Inheritance
-
SignInManager<TUser>
Constructors
Properties
AuthenticationScheme |
The authentication scheme to sign in with. Defaults to ApplicationScheme. |
ClaimsFactory |
The IUserClaimsPrincipalFactory<TUser> used. |
Context |
The HttpContext used. |
Logger |
Gets the ILogger used to log messages from the manager. |
Options |
The IdentityOptions used. |
UserManager |
The UserManager<TUser> used. |
Methods
CanSignInAsync(TUser) |
Returns a flag indicating whether the specified user can sign in. |
CheckPasswordSignInAsync(TUser, String, Boolean) |
Attempts a password sign in for a user. |
ConfigureExternalAuthenticationProperties(String, String, String) |
Configures the redirect URL and user identifier for the specified external login |
CreateUserPrincipalAsync(TUser) |
Creates a ClaimsPrincipal for the specified |
ExternalLoginSignInAsync(String, String, Boolean, Boolean) |
Signs in a user via a previously registered third party login, as an asynchronous operation. |
ExternalLoginSignInAsync(String, String, Boolean) |
Signs in a user via a previously registered third party login, as an asynchronous operation. |
ForgetTwoFactorClientAsync() |
Clears the "Remember this browser flag" from the current browser, as an asynchronous operation. |
GetExternalAuthenticationSchemes() |
Gets a collection of AuthenticationDescriptions for the known external login providers. |
GetExternalAuthenticationSchemesAsync() |
Gets a collection of AuthenticationSchemes for the known external login providers. |
GetExternalLoginInfoAsync(String) |
Gets the external login information for the current login, as an asynchronous operation. |
GetTwoFactorAuthenticationUserAsync() |
Gets the |
IsLockedOut(TUser) |
Used to determine if a user is considered locked out. |
IsSignedIn(ClaimsPrincipal) |
Returns true if the principal has an identity with the application cookie identity |
IsTwoFactorClientRememberedAsync(TUser) |
Returns a flag indicating if the current client browser has been remembered by two factor authentication for the user attempting to login, as an asynchronous operation. |
IsTwoFactorEnabledAsync(TUser) |
Check if the |
LockedOut(TUser) |
Returns a locked out SignInResult. |
PasswordSignInAsync(String, String, Boolean, Boolean) |
Attempts to sign in the specified |
PasswordSignInAsync(TUser, String, Boolean, Boolean) |
Attempts to sign in the specified |
PreSignInCheck(TUser) |
Used to ensure that a user is allowed to sign in. |
RefreshSignInAsync(TUser) |
Signs in the specified |
RememberTwoFactorClientAsync(TUser) |
Sets a flag on the browser to indicate the user has selected "Remember this browser" for two factor authentication purposes, as an asynchronous operation. |
ResetLockout(TUser) |
Used to reset a user's lockout count. |
SignInAsync(TUser, AuthenticationProperties, String) |
Signs in the specified |
SignInAsync(TUser, AuthenticationProperties, String) |
Signs in the specified |
SignInAsync(TUser, Boolean, String) |
Signs in the specified |
SignInOrTwoFactorAsync(TUser, Boolean, String, Boolean) |
Signs in the specified |
SignInWithClaimsAsync(TUser, AuthenticationProperties, IEnumerable<Claim>) |
Signs in the specified |
SignInWithClaimsAsync(TUser, Boolean, IEnumerable<Claim>) |
Signs in the specified |
SignOutAsync() |
Signs the current user out of the application. |
TwoFactorAuthenticatorSignInAsync(String, Boolean, Boolean) |
Validates the sign in code from an authenticator app and creates and signs in the user, as an asynchronous operation. |
TwoFactorRecoveryCodeSignInAsync(String) |
Signs in the user without two factor authentication using a two factor recovery code. |
TwoFactorSignInAsync(String, String, Boolean, Boolean) |
Validates the two factor sign in code and creates and signs in the user, as an asynchronous operation. |
UpdateExternalAuthenticationTokensAsync(ExternalLoginInfo) |
Stores any authentication tokens found in the external authentication cookie into the associated user. |
ValidateSecurityStampAsync(ClaimsPrincipal) |
Validates the security stamp for the specified |
ValidateSecurityStampAsync(TUser, String) |
Validates the security stamp for the specified |
ValidateTwoFactorSecurityStampAsync(ClaimsPrincipal) |
Validates the security stamp for the specified |