Dela via


UserManager<TUser>.GetAuthenticationTokenAsync Method

Definition

Returns an authentication token for a user.

public:
 virtual System::Threading::Tasks::Task<System::String ^> ^ GetAuthenticationTokenAsync(TUser user, System::String ^ loginProvider, System::String ^ tokenName);
public virtual System.Threading.Tasks.Task<string> GetAuthenticationTokenAsync (TUser user, string loginProvider, string tokenName);
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
loginProvider
String

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

tokenName
String

The name of the token.

Returns

The authentication token for a user

Applies to