IUserLoginStore<TUser> IUserLoginStore<TUser> IUserLoginStore<TUser> Interface

Definition

Provides an abstraction for storing information that maps external login information provided by Microsoft Account, Facebook etc. to a user account.

public interface IUserLoginStore<TUser> : IDisposable, Microsoft.AspNetCore.Identity.IUserStore<TUser> where TUser : class
type IUserLoginStore<'User (requires 'User : null)> = interface
    interface IUserStore<'User (requires 'User : null)>
    interface IDisposable
Public Interface IUserLoginStore(Of TUser)
Implements IDisposable, IUserStore(Of TUser)

Type Parameters

TUser

The type that represents a user.

Derived
Implements

Methods

AddLoginAsync(TUser, UserLoginInfo, CancellationToken) AddLoginAsync(TUser, UserLoginInfo, CancellationToken) AddLoginAsync(TUser, UserLoginInfo, CancellationToken)

Adds an external UserLoginInfo to the specified user.

CreateAsync(TUser, CancellationToken) CreateAsync(TUser, CancellationToken) CreateAsync(TUser, CancellationToken)

Creates the specified user in the user store.

(Inherited from IUserStore<TUser>)
DeleteAsync(TUser, CancellationToken) DeleteAsync(TUser, CancellationToken) DeleteAsync(TUser, CancellationToken)

Deletes the specified user from the user store.

(Inherited from IUserStore<TUser>)
FindByIdAsync(String, CancellationToken) FindByIdAsync(String, CancellationToken) FindByIdAsync(String, CancellationToken)

Finds and returns a user, if any, who has the specified userId.

(Inherited from IUserStore<TUser>)
FindByLoginAsync(String, String, CancellationToken) FindByLoginAsync(String, String, CancellationToken) FindByLoginAsync(String, String, CancellationToken)

Retrieves the user associated with the specified login provider and login provider key.

FindByNameAsync(String, CancellationToken) FindByNameAsync(String, CancellationToken) FindByNameAsync(String, CancellationToken)

Finds and returns a user, if any, who has the specified normalized user name.

(Inherited from IUserStore<TUser>)
GetLoginsAsync(TUser, CancellationToken) GetLoginsAsync(TUser, CancellationToken) GetLoginsAsync(TUser, CancellationToken)

Retrieves the associated logins for the specified .

GetNormalizedUserNameAsync(TUser, CancellationToken) GetNormalizedUserNameAsync(TUser, CancellationToken) GetNormalizedUserNameAsync(TUser, CancellationToken)

Gets the normalized user name for the specified user.

(Inherited from IUserStore<TUser>)
GetUserIdAsync(TUser, CancellationToken) GetUserIdAsync(TUser, CancellationToken) GetUserIdAsync(TUser, CancellationToken)

Gets the user identifier for the specified user.

(Inherited from IUserStore<TUser>)
GetUserNameAsync(TUser, CancellationToken) GetUserNameAsync(TUser, CancellationToken) GetUserNameAsync(TUser, CancellationToken)

Gets the user name for the specified user.

(Inherited from IUserStore<TUser>)
RemoveLoginAsync(TUser, String, String, CancellationToken) RemoveLoginAsync(TUser, String, String, CancellationToken) RemoveLoginAsync(TUser, String, String, CancellationToken)

Attempts to remove the provided login information from the specified user. and returns a flag indicating whether the removal succeed or not.

SetNormalizedUserNameAsync(TUser, String, CancellationToken) SetNormalizedUserNameAsync(TUser, String, CancellationToken) SetNormalizedUserNameAsync(TUser, String, CancellationToken)

Sets the given normalized name for the specified user.

(Inherited from IUserStore<TUser>)
SetUserNameAsync(TUser, String, CancellationToken) SetUserNameAsync(TUser, String, CancellationToken) SetUserNameAsync(TUser, String, CancellationToken)

Sets the given userName for the specified user.

(Inherited from IUserStore<TUser>)
UpdateAsync(TUser, CancellationToken) UpdateAsync(TUser, CancellationToken) UpdateAsync(TUser, CancellationToken)

Updates the specified user in the user store.

(Inherited from IUserStore<TUser>)

Applies to