IUserTwoFactorStore<TUser, TKey> Interface

 

Provides methods used to get or set the two factor authentication for a user.

Namespace:   Microsoft.AspNet.Identity
Assembly:  Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)

public interface IUserTwoFactorStore<TUser, in TKey> : IUserStore<TUser, TKey>, 
	IDisposable
where TUser : class, IUser<TKey>

Type Parameters

TUser

The type of the user.

inTKey

The type of the key.

NameDescription
System_CAPS_pubmethodCreateAsync(TUser)

Asynchronously inserts a new user.(Inherited from IUserStore<TUser, TKey>.)

System_CAPS_pubmethodDeleteAsync(TUser)

Asynchronously deletes a user.(Inherited from IUserStore<TUser, TKey>.)

System_CAPS_pubmethodDispose()

(Inherited from IDisposable.)

System_CAPS_pubmethodFindByIdAsync(TKey)

Asynchronously finds a user using the specified identifier.(Inherited from IUserStore<TUser, TKey>.)

System_CAPS_pubmethodFindByNameAsync(String)

Asynchronously finds a user by name.(Inherited from IUserStore<TUser, TKey>.)

System_CAPS_pubmethodGetTwoFactorEnabledAsync(TUser)

Returns whether two factor authentication is enabled for the user.

System_CAPS_pubmethodSetTwoFactorEnabledAsync(TUser, Boolean)

Sets whether two factor authentication is enabled for the user.

System_CAPS_pubmethodUpdateAsync(TUser)

Asynchronously updates a user.(Inherited from IUserStore<TUser, TKey>.)

Return to top
Show: