اقرأ باللغة الإنجليزية

مشاركة عبر


IUserTwoFactorTokenProvider<TUser> Interface

Definition

Provides an abstraction for two-factor token generators.

C#
public interface IUserTwoFactorTokenProvider<TUser> where TUser : class

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 user.

GenerateAsync(String, UserManager<TUser>, TUser)

Generates a token for the specified user and purpose.

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

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

Applies to

منتج الإصدارات
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0