UserStoreBase<TUser,TKey,TUserClaim,TUserLogin,TUserToken>.GetLoginsAsync(TUser, CancellationToken) Method

Definition

Retrieves the associated logins for the specified .

public abstract System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.AspNetCore.Identity.UserLoginInfo>> GetLoginsAsync (TUser user, System.Threading.CancellationToken cancellationToken = default);
abstract member GetLoginsAsync : 'User * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.AspNetCore.Identity.UserLoginInfo>>
Public MustOverride Function GetLoginsAsync (user As TUser, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IList(Of UserLoginInfo))

Parameters

user
TUser

The user whose associated logins to retrieve.

cancellationToken
CancellationToken

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

Returns

Task<IList<UserLoginInfo>>

The Task for the asynchronous operation, containing a list of UserLoginInfo for the specified user, if any.

Implements

Applies to