UserManager<TUser>.GetAuthenticationTokenAsync 方法

定义

返回用户的身份验证令牌。

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)

参数

user
TUser
loginProvider
String

与令牌关联的提供程序的身份验证方案。

tokenName
String

令牌的名称。

返回

用户的身份验证令牌

适用于