IUserTwoFactorRecoveryCodeStore<TUser> Interface
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 an abstraction for a store which stores a user's recovery codes.
generic <typename TUser>
where TUser : classpublic interface class IUserTwoFactorRecoveryCodeStore : IDisposable, Microsoft::AspNetCore::Identity::IUserStore<TUser>
public interface IUserTwoFactorRecoveryCodeStore<TUser> : IDisposable, Microsoft.AspNetCore.Identity.IUserStore<TUser> where TUser : class
type IUserTwoFactorRecoveryCodeStore<'User (requires 'User : null)> = interface
interface IUserStore<'User (requires 'User : null)>
interface IDisposable
Public Interface IUserTwoFactorRecoveryCodeStore(Of TUser)
Implements IDisposable, IUserStore(Of TUser)
Type Parameters
- TUser
The type encapsulating a user.
- Derived
- Implements
Methods
CountCodesAsync(TUser, CancellationToken) |
Returns how many recovery code are still valid for a user. |
CreateAsync(TUser, CancellationToken) |
Creates the specified |
DeleteAsync(TUser, CancellationToken) |
Deletes the specified |
FindByIdAsync(String, CancellationToken) |
Finds and returns a user, if any, who has the specified |
FindByNameAsync(String, CancellationToken) |
Finds and returns a user, if any, who has the specified normalized user name. (Inherited from IUserStore<TUser>) |
GetNormalizedUserNameAsync(TUser, CancellationToken) |
Gets the normalized user name for the specified |
GetUserIdAsync(TUser, CancellationToken) |
Gets the user identifier for the specified |
GetUserNameAsync(TUser, CancellationToken) |
Gets the user name for the specified |
RedeemCodeAsync(TUser, String, CancellationToken) |
Returns whether a recovery code is valid for a user. Note: recovery codes are only valid once, and will be invalid after use. |
ReplaceCodesAsync(TUser, IEnumerable<String>, CancellationToken) |
Updates the recovery codes for the user while invalidating any previous recovery codes. |
SetNormalizedUserNameAsync(TUser, String, CancellationToken) |
Sets the given normalized name for the specified |
SetUserNameAsync(TUser, String, CancellationToken) |
Sets the given |
UpdateAsync(TUser, CancellationToken) |
Updates the specified |