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)
Syntax
public interface IUserTwoFactorStore<TUser, in TKey> : IUserStore<TUser, TKey>,
IDisposable
where TUser : class, IUser<TKey>
generic<typename TUser, typename TKey>
where TUser : ref class, IUser<TKey>
public interface class IUserTwoFactorStore : IUserStore<TUser, TKey>,
IDisposable
type IUserTwoFactorStore<'TUser, 'TKey when 'TUser : not struct and IUser<'TKey>> =
interface
interface IUserStore<'TUser, 'TKey>
interface IDisposable
end
Public Interface IUserTwoFactorStore(Of TUser As { Class, IUser(Of TKey) }, In TKey)
Inherits IUserStore(Of TUser, TKey), IDisposable
Type Parameters
- TUser
The type of the user.
- **in **TKey
The type of the key.
Methods
Name | Description | |
---|---|---|
CreateAsync(TUser) | Asynchronously inserts a new user.(Inherited from IUserStore<TUser, TKey>.) |
|
DeleteAsync(TUser) | Asynchronously deletes a user.(Inherited from IUserStore<TUser, TKey>.) |
|
Dispose() | (Inherited from IDisposable.) |
|
FindByIdAsync(TKey) | Asynchronously finds a user using the specified identifier.(Inherited from IUserStore<TUser, TKey>.) |
|
FindByNameAsync(String) | Asynchronously finds a user by name.(Inherited from IUserStore<TUser, TKey>.) |
|
GetTwoFactorEnabledAsync(TUser) | Returns whether two factor authentication is enabled for the user. |
|
SetTwoFactorEnabledAsync(TUser, Boolean) | Sets whether two factor authentication is enabled for the user. |
|
UpdateAsync(TUser) | Asynchronously updates a user.(Inherited from IUserStore<TUser, TKey>.) |
See Also
Microsoft.AspNet.Identity Namespace
ASP.NET Identity
Return to top