Delen via


EmailTokenProvider<TUser> Class

Definition

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

generic <typename TUser>
 where TUser : classpublic ref class EmailTokenProvider : Microsoft::AspNetCore::Identity::TotpSecurityStampBasedTokenProvider<TUser>
public class EmailTokenProvider<TUser> : Microsoft.AspNetCore.Identity.TotpSecurityStampBasedTokenProvider<TUser> where TUser : class
type EmailTokenProvider<'User (requires 'User : null)> = class
    inherit TotpSecurityStampBasedTokenProvider<'User (requires 'User : null)>
Public Class EmailTokenProvider(Of TUser)
Inherits TotpSecurityStampBasedTokenProvider(Of TUser)

Type Parameters

TUser

The type used to represent a user.

Inheritance

Constructors

EmailTokenProvider<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)

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