UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken>.FindByLoginAsync Metoda

Definice

Načte uživatele přidruženého k zadanému zprostředkovateli přihlášení a ke klíči poskytovatele přihlášení.

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

Parametry

loginProvider
String

Zprostředkovatel přihlášení, který poskytl providerKey .

providerKey
String

Klíč poskytovaný loginProvider k identifikaci uživatele.

cancellationToken
CancellationToken

CancellationTokenSlouží k šíření oznámení, která by měla být operace zrušena.

Návraty

Task<TUser>

TaskPro asynchronní operace, která obsahuje uživatele, pokud existuje, který odpovídá zadanému zprostředkovateli a klíči přihlášení.

Implementuje

Platí pro