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 |
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for