SignInManager<TUser, TKey> Class
Manages Sign In operations for users
Namespace: Microsoft.AspNet.Identity.Owin
Assembly: Microsoft.AspNet.Identity.Owin (in Microsoft.AspNet.Identity.Owin.dll)
Inheritance Hierarchy
System.Object
Microsoft.AspNet.Identity.Owin.SignInManager<TUser, TKey>
Syntax
public class SignInManager<TUser, TKey> : IDisposable
where TUser : class, IUser<TKey>
where TKey : object, IEquatable<TKey>
generic<typename TUser, typename TKey>
where TUser : ref class, IUser<TKey>
where TKey : Object, IEquatable<TKey>
public ref class SignInManager : IDisposable
type SignInManager<'TUser, 'TKey when 'TUser : not struct and IUser<'TKey> when 'TKey : Object and IEquatable<'TKey>> =
class
interface IDisposable
end
Public Class SignInManager(Of TUser As { Class, IUser(Of TKey) }, TKey As { Object, IEquatable(Of TKey) })
Implements IDisposable
Type Parameters
- TUser
- TKey
Constructors
Name | Description | |
---|---|---|
SignInManager<TUser, TKey>(UserManager<TUser, TKey>, IAuthenticationManager) | Constructor |
Properties
Name | Description | |
---|---|---|
AuthenticationManager | Used to sign in identities |
|
AuthenticationType | AuthenticationType that will be used by sign in, defaults to DefaultAuthenticationTypes.ApplicationCookie |
|
UserManager | Used to operate on users |
Methods
Name | Description | |
---|---|---|
ConvertIdFromString(String) | Convert a string id to the proper TKey using Convert.ChangeType |
|
ConvertIdToString(TKey) | Convert a TKey userId to a string, by default this just calls ToString() |
|
CreateUserIdentityAsync(TUser) | Called to generate the ClaimsIdentity for the user, override to add additional claims before SignIn |
|
Dispose() | Dispose |
|
Dispose(Boolean) | If disposing, calls dispose on the Context. Always nulls out the Context |
|
Equals(Object) | (Inherited from Object.) |
|
ExternalSignInAsync(ExternalLoginInfo, Boolean) | Sign the user in using an associated external login |
|
Finalize() | (Inherited from Object.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
GetVerifiedUserIdAsync() | Get the user id that has been verified already or null. |
|
HasBeenVerifiedAsync() | Has the user been verified (ie either via password or external login) |
|
MemberwiseClone() | (Inherited from Object.) |
|
PasswordSignInAsync(String, String, Boolean, Boolean) | Sign in the user in using the user name and password |
|
SendTwoFactorCodeAsync(String) | Send a two factor code to a user |
|
SignInAsync(TUser, Boolean, Boolean) | Creates a user identity and then signs the identity using the AuthenticationManager |
|
ToString() | (Inherited from Object.) |
|
TwoFactorSignInAsync(String, String, Boolean, Boolean) | Two factor verification step |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Microsoft.AspNet.Identity.Owin Namespace
Return to top