UserManager<TUser>.VerifyTwoFactorTokenAsync Metodo

Definizione

Verifica l'autenticazione token a due fattori specificata rispetto a user.

public:
 virtual System::Threading::Tasks::Task<bool> ^ VerifyTwoFactorTokenAsync(TUser user, System::String ^ tokenProvider, System::String ^ token);
public virtual System.Threading.Tasks.Task<bool> VerifyTwoFactorTokenAsync (TUser user, string tokenProvider, string token);
abstract member VerifyTwoFactorTokenAsync : 'User * string * string -> System.Threading.Tasks.Task<bool>
override this.VerifyTwoFactorTokenAsync : 'User * string * string -> System.Threading.Tasks.Task<bool>
Public Overridable Function VerifyTwoFactorTokenAsync (user As TUser, tokenProvider As String, token As String) As Task(Of Boolean)

Parametri

user
TUser

L'utente deve essere per il token.

tokenProvider
String

Provider che verificherà il token.

token
String

Token da verificare.

Restituisce

Oggetto Task che rappresenta il risultato dell'operazione asincrona, true se il token è valido, in caso contrario false.

Si applica a