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

Definition

Returns an authentication token for a user.

public virtual System.Threading.Tasks.Task<string> GetAuthenticationTokenAsync (TUser user, string loginProvider, string tokenName);
abstract member GetAuthenticationTokenAsync : 'User * string * string -> System.Threading.Tasks.Task<string>
override this.GetAuthenticationTokenAsync : 'User * string * string -> System.Threading.Tasks.Task<string>
Public Overridable Function GetAuthenticationTokenAsync (user As TUser, loginProvider As String, tokenName As String) As Task(Of String)

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.

Returns

The authentication token for a user

Applies to