UserOnlyStore<TUser,TContext,TKey,TUserClaim,TUserLogin,TUserToken>.FindUserLoginAsync UserOnlyStore<TUser,TContext,TKey,TUserClaim,TUserLogin,TUserToken>.FindUserLoginAsync Method

Definition

Overloads

FindUserLoginAsync(TKey, String, String, CancellationToken) FindUserLoginAsync(TKey, String, String, CancellationToken)

Return a user login with the matching userId, provider, providerKey if it exists.

FindUserLoginAsync(String, String, CancellationToken) FindUserLoginAsync(String, String, CancellationToken)

Return a user login with provider, providerKey if it exists.

FindUserLoginAsync(TKey, String, String, CancellationToken) FindUserLoginAsync(TKey, String, String, CancellationToken)

Return a user login with the matching userId, provider, providerKey if it exists.

protected override System.Threading.Tasks.Task<TUserLogin> FindUserLoginAsync (TKey userId, string loginProvider, string providerKey, System.Threading.CancellationToken cancellationToken);
override this.FindUserLoginAsync : 'Key * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'UserLogin (requires 'UserLogin :> Microsoft.AspNetCore.Identity.IdentityUserLogin<'Key> and 'UserLogin : (new : unit -> 'UserLogin))>

Parameters

userId

The user's id.

loginProvider
String String

The login provider name.

providerKey
String String

The key provided by the loginProvider to identify a user.

cancellationToken
CancellationToken CancellationToken

The CancellationToken used to propagate notifications that the operation should be canceled.

Returns

Task<TUserLogin>

The user login if it exists.

FindUserLoginAsync(String, String, CancellationToken) FindUserLoginAsync(String, String, CancellationToken)

Return a user login with provider, providerKey if it exists.

protected override System.Threading.Tasks.Task<TUserLogin> FindUserLoginAsync (string loginProvider, string providerKey, System.Threading.CancellationToken cancellationToken);
override this.FindUserLoginAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'UserLogin (requires 'UserLogin :> Microsoft.AspNetCore.Identity.IdentityUserLogin<'Key> and 'UserLogin : (new : unit -> 'UserLogin))>

Parameters

loginProvider
String String

The login provider name.

providerKey
String String

The key provided by the loginProvider to identify a user.

cancellationToken
CancellationToken CancellationToken

The CancellationToken used to propagate notifications that the operation should be canceled.

Returns

Task<TUserLogin>

The user login if it exists.

Applies to