Sdílet prostřednictvím


UserManager<TUser>.SetAuthenticationTokenAsync Metoda

Definice

Nastaví ověřovací token pro uživatele.

public:
 virtual System::Threading::Tasks::Task<Microsoft::AspNetCore::Identity::IdentityResult ^> ^ SetAuthenticationTokenAsync(TUser user, System::String ^ loginProvider, System::String ^ tokenName, System::String ^ tokenValue);
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult> SetAuthenticationTokenAsync (TUser user, string loginProvider, string tokenName, string tokenValue);
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult> SetAuthenticationTokenAsync (TUser user, string loginProvider, string tokenName, string? tokenValue);
abstract member SetAuthenticationTokenAsync : 'User * string * string * string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
override this.SetAuthenticationTokenAsync : 'User * string * string * string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
Public Overridable Function SetAuthenticationTokenAsync (user As TUser, loginProvider As String, tokenName As String, tokenValue As String) As Task(Of IdentityResult)

Parametry

user
TUser
loginProvider
String

Schéma ověřování pro zprostředkovatele, ke které je token přidružený.

tokenName
String

Název tokenu.

tokenValue
String

Hodnota tokenu.

Návraty

Zda byl uživatel úspěšně aktualizován.

Platí pro