Dela via


PhoneNumberTokenProvider<TUser> Class

Definition

Represents a token provider that generates tokens from a user's security stamp and sends them to the user via their phone number.

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

Type Parameters

TUser

The type encapsulating a user.

Inheritance
PhoneNumberTokenProvider<TUser>

Constructors

PhoneNumberTokenProvider<TUser>()

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.

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

Returns a constant, provider and user unique modifier used for entropy in generated tokens from user information.

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