UserManager<TUser>.SetAuthenticationTokenAsync(TUser, String, String, String) UserManager<TUser>.SetAuthenticationTokenAsync(TUser, String, String, String) UserManager<TUser>.SetAuthenticationTokenAsync(TUser, String, String, String) Method

Definition

Sets an authentication token for a user.

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)

Parameters

user
TUser TUser TUser
loginProvider
String String String

The authentication scheme for the provider the token is associated with.

tokenName
String String String

The name of the token.

tokenValue
String String String

The value of the token.

Returns

Whether the user was successfully updated.

Applies to