共用方式為


SignInManager<TUser>.GetExternalLoginInfoAsync(String) 方法

定義

取得目前登入的外部登入資訊,做為非同步作業。

public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.ExternalLoginInfo> GetExternalLoginInfoAsync (string expectedXsrf = default);
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.ExternalLoginInfo?> GetExternalLoginInfoAsync (string? expectedXsrf = default);
abstract member GetExternalLoginInfoAsync : string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.ExternalLoginInfo>
override this.GetExternalLoginInfoAsync : string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.ExternalLoginInfo>
Public Overridable Function GetExternalLoginInfoAsync (Optional expectedXsrf As String = Nothing) As Task(Of ExternalLoginInfo)

參數

expectedXsrf
String

旗標指出目前要求中是否預期有跨網站要求偽造權杖。

傳回

工作物件,表示包含 登入嘗試之 的 非同步作業。

適用於