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)

System.Object
  Microsoft.AspNet.Identity.Owin.SignInManager<TUser, TKey>

public class SignInManager<TUser, TKey> : IDisposable
where TUser : class, IUser<TKey>
where TKey : object, IEquatable<TKey>

Type Parameters

TUser

TKey

NameDescription
System_CAPS_pubpropertyAuthenticationManager

Used to sign in identities

System_CAPS_pubpropertyAuthenticationType

AuthenticationType that will be used by sign in, defaults to DefaultAuthenticationTypes.ApplicationCookie

System_CAPS_pubpropertyUserManager

Used to operate on users

NameDescription
System_CAPS_pubmethodConvertIdFromString(String)

Convert a string id to the proper TKey using Convert.ChangeType

System_CAPS_pubmethodConvertIdToString(TKey)

Convert a TKey userId to a string, by default this just calls ToString()

System_CAPS_pubmethodCreateUserIdentityAsync(TUser)

Called to generate the ClaimsIdentity for the user, override to add additional claims before SignIn

System_CAPS_pubmethodDispose()

Dispose

System_CAPS_protmethodDispose(Boolean)

If disposing, calls dispose on the Context. Always nulls out the Context

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodExternalSignInAsync(ExternalLoginInfo, Boolean)

Sign the user in using an associated external login

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodGetVerifiedUserIdAsync()

Get the user id that has been verified already or null.

System_CAPS_pubmethodHasBeenVerifiedAsync()

Has the user been verified (ie either via password or external login)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodPasswordSignInAsync(String, String, Boolean, Boolean)

Sign in the user in using the user name and password

System_CAPS_pubmethodSendTwoFactorCodeAsync(String)

Send a two factor code to a user

System_CAPS_pubmethodSignInAsync(TUser, Boolean, Boolean)

Creates a user identity and then signs the identity using the AuthenticationManager

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodTwoFactorSignInAsync(String, String, Boolean, Boolean)

Two factor verification step

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: