IUserTwoFactorTokenProvider<TUser> IUserTwoFactorTokenProvider<TUser> IUserTwoFactorTokenProvider<TUser> Interface

Definition

Provides an abstraction for two factor token generators.

public interface IUserTwoFactorTokenProvider<TUser> where TUser : class
type IUserTwoFactorTokenProvider<'User (requires 'User : null)> = interface
Public Interface IUserTwoFactorTokenProvider(Of TUser)

Type Parameters

TUser

The type encapsulating a user.

Derived

Methods

CanGenerateTwoFactorTokenAsync(UserManager<TUser>, TUser) CanGenerateTwoFactorTokenAsync(UserManager<TUser>, TUser) CanGenerateTwoFactorTokenAsync(UserManager<TUser>, TUser)

Returns a flag indicating whether the token provider can generate a token suitable for two factor authentication token for the specified user.

GenerateAsync(String, UserManager<TUser>, TUser) GenerateAsync(String, UserManager<TUser>, TUser) GenerateAsync(String, UserManager<TUser>, TUser)

Generates a token for the specified user and purpose.

ValidateAsync(String, String, UserManager<TUser>, TUser) ValidateAsync(String, String, UserManager<TUser>, TUser) ValidateAsync(String, String, UserManager<TUser>, TUser)

Returns a flag indicating whether the specified token is valid for the given user and purpose.

Applies to