AuthenticatorTokenProvider<TUser> Class

Definition

Used for authenticator code verification.

generic <typename TUser>
 where TUser : classpublic ref class AuthenticatorTokenProvider : Microsoft::AspNetCore::Identity::IUserTwoFactorTokenProvider<TUser>
public class AuthenticatorTokenProvider<TUser> : Microsoft.AspNetCore.Identity.IUserTwoFactorTokenProvider<TUser> where TUser : class
type AuthenticatorTokenProvider<'User (requires 'User : null)> = class
    interface IUserTwoFactorTokenProvider<'User (requires 'User : null)>
Public Class AuthenticatorTokenProvider(Of TUser)
Implements IUserTwoFactorTokenProvider(Of TUser)

Type Parameters

TUser
Inheritance
AuthenticatorTokenProvider<TUser>
Implements

Constructors

AuthenticatorTokenProvider<TUser>()

Methods

CanGenerateTwoFactorTokenAsync(UserManager<TUser>, TUser)

Checks if a two-factor authentication token can be generated for the specified user.

GenerateAsync(String, UserManager<TUser>, TUser)

Returns an empty string since no authenticator codes are sent.

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

Applies to