IUserTwoFactorTokenProvider<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 two-factor token generators.
generic <typename TUser>
where TUser : classpublic interface class IUserTwoFactorTokenProvider
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) |
Returns a flag indicating whether the token provider can generate a token suitable for two-factor authentication token for
the specified |
GenerateAsync(String, UserManager<TUser>, TUser) |
Generates a token for the specified |
ValidateAsync(String, String, UserManager<TUser>, TUser) |
Returns a flag indicating whether the specified |