EmailTokenProvider<TUser> Class

Definition

TokenProvider that generates tokens from the user's security stamp and notifies a user via email.

C#
public class EmailTokenProvider<TUser> : Microsoft.AspNetCore.Identity.TotpSecurityStampBasedTokenProvider<TUser> where TUser : class

Type Parameters

TUser

The type used to represent a user.

Inheritance

Constructors

Methods

CanGenerateTwoFactorTokenAsync(UserManager<TUser>, TUser)

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

GenerateAsync(String, UserManager<TUser>, TUser)

Generates a token for the specified user and purpose.

(Inherited from TotpSecurityStampBasedTokenProvider<TUser>)
GetUserModifierAsync(String, UserManager<TUser>, TUser)

Returns the a value for the user used as entropy in the generated token.

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

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

(Inherited from TotpSecurityStampBasedTokenProvider<TUser>)

Applies to

Product Versions
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