UserOnlyStore<TUser,TContext,TKey,TUserClaim,TUserLogin,TUserToken>.FindByLoginAsync メソッド

定義

指定したログイン プロバイダーとログイン プロバイダー キーに関連付けられているユーザーを取得します。

public override System.Threading.Tasks.Task<TUser> FindByLoginAsync (string loginProvider, string providerKey, System.Threading.CancellationToken cancellationToken = default);
public override System.Threading.Tasks.Task<TUser?> FindByLoginAsync (string loginProvider, string providerKey, System.Threading.CancellationToken cancellationToken = default);
override this.FindByLoginAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'User (requires 'User :> Microsoft.AspNetCore.Identity.IdentityUser<'Key>)>
Public Overrides Function FindByLoginAsync (loginProvider As String, providerKey As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of TUser)

パラメーター

loginProvider
String

を提供 providerKeyしたログイン プロバイダー。

providerKey
String

ユーザーを識別するために によって loginProvider 提供されるキー。

cancellationToken
CancellationToken

この操作を取り消す必要があることを示す通知を伝達するために使用する CancellationToken

戻り値

Task<TUser>

Task指定したログイン プロバイダーとキーに一致するユーザーを含む非同期操作の 。

実装

適用対象