共用方式為


SignInManager<TUser>.UpdateExternalAuthenticationTokensAsync 方法

定義

將外部驗證 Cookie 中找到的任何驗證權杖儲存到相關聯的使用者。

public:
 virtual System::Threading::Tasks::Task<Microsoft::AspNetCore::Identity::IdentityResult ^> ^ UpdateExternalAuthenticationTokensAsync(Microsoft::AspNetCore::Identity::ExternalLoginInfo ^ externalLogin);
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult> UpdateExternalAuthenticationTokensAsync (Microsoft.AspNetCore.Identity.ExternalLoginInfo externalLogin);
abstract member UpdateExternalAuthenticationTokensAsync : Microsoft.AspNetCore.Identity.ExternalLoginInfo -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
override this.UpdateExternalAuthenticationTokensAsync : Microsoft.AspNetCore.Identity.ExternalLoginInfo -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
Public Overridable Function UpdateExternalAuthenticationTokensAsync (externalLogin As ExternalLoginInfo) As Task(Of IdentityResult)

參數

externalLogin
ExternalLoginInfo

來自外部登入提供者的資訊。

傳回

Task 表示非同步作業,包含 IdentityResult 作業的 。

適用於