KenticoUserStoreTUser Class |
Namespace: Kentico.Membership
public class KenticoUserStore<TUser> : ApplicationUserStore<TUser>, IUserPasswordStore<TUser, int>, IUserStore<TUser, int>, IDisposable, IUserLockoutStore<TUser, int>, IUserTwoFactorStore<TUser, int>, IUserRoleStore<TUser, int>, IUserEmailStore<TUser, int>, IUserLoginStore<TUser, int>, IUserSecurityStampStore<TUser, int> where TUser : new(), User
The KenticoUserStoreTUser type exposes the following members.
Name | Description | |
---|---|---|
KenticoUserStoreTUser(String) |
Creates store to manage users for given site.
| |
KenticoUserStoreTUser(String, IUserInfoProvider, IUserRoleInfoProvider, IExternalLoginInfoProvider) |
Creates store to manage users for given site.
|
Name | Description | |
---|---|---|
AddLoginAsync(TUser, UserLoginInfo) |
Adds external login to user.
| |
AddLoginAsync(TUser, UserLoginInfo, CancellationToken) |
Adds an external UserLoginInfo to the specified user.
(Inherited from ApplicationUserStoreTUser.) | |
AddToRoleAsync(TUser, String) |
Adds user to Role.
| |
AddToRoleAsync(TUser, String, CancellationToken) |
Add the specified user to the named role.
(Inherited from ApplicationUserStoreTUser.) | |
CreateAsync(TUser) |
Inserts new user to the database.
| |
CreateAsync(TUser, CancellationToken) |
Creates the specified user in the user store.
(Inherited from ApplicationUserStoreTUser.) | |
DeleteAsync(TUser) |
Deletes the user.
| |
DeleteAsync(TUser, CancellationToken) |
Deletes the user.
(Inherited from ApplicationUserStoreTUser.) | |
Dispose |
Performs tasks to dispose the user store.
(Inherited from ApplicationUserStoreTUser.) | |
Dispose(Boolean) |
Disposes the user store.
(Inherited from ApplicationUserStoreTUser.) | |
FindAsync |
Returns user based on given external login.
| |
FindByEmailAsync(String) |
Returns the user associated with the given email.
| |
FindByEmailAsync(String, CancellationToken) |
Gets the user, if any, associated with the specified, normalized email address.
(Inherited from ApplicationUserStoreTUser.) | |
FindByIdAsync(Int32) |
Finds the user by user's UserId.
| |
FindByIdAsync(Int32, CancellationToken) |
Finds and returns a user, if any, who has the specified userId.
(Inherited from ApplicationUserStoreTUser.) | |
FindByIdAsync(String, CancellationToken) |
Finds and returns a user, if any, who has the specified userId.
(Inherited from ApplicationUserStoreTUser.) | |
FindByLoginAsync |
Retrieves the user associated with the specified login provider and login provider key.
(Inherited from ApplicationUserStoreTUser.) | |
FindByNameAsync(String) |
Finds the user by user's username.
| |
FindByNameAsync(String, CancellationToken) |
Finds and returns a user, if any, who has the specified normalized user name.
(Inherited from ApplicationUserStoreTUser.) | |
GetAccessFailedCountAsync |
Returns the current number of failed access attempts.
| |
GetEmailAsync(TUser) |
Gets the user email.
| |
GetEmailAsync(TUser, CancellationToken) |
Gets the email address for the specified user.
(Inherited from ApplicationUserStoreTUser.) | |
GetEmailConfirmedAsync(TUser) |
Returns true if the user email is confirmed.
| |
GetEmailConfirmedAsync(TUser, CancellationToken) |
Gets a flag indicating whether the email address for the specified user has been verified, true if the email address is verified otherwise
false.
(Inherited from ApplicationUserStoreTUser.) | |
GetLockoutEnabledAsync |
Returns whether the user can be locked out.
| |
GetLockoutEndDateAsync |
Returns the DateTimeOffset that represents the end of the user's lockout, any time
in the past should be considered not locked out.
| |
GetLoginsAsync(TUser) |
Returns all external logins of user.
| |
GetLoginsAsync(TUser, CancellationToken) |
Retrieves the associated logins for the specified .
(Inherited from ApplicationUserStoreTUser.) | |
GetNormalizedEmailAsync |
Returns the normalized email for the specified user.
(Inherited from ApplicationUserStoreTUser.) | |
GetNormalizedUserNameAsync |
Gets the normalized user name for the specified user.
(Inherited from ApplicationUserStoreTUser.) | |
GetPasswordHashAsync(TUser) |
Gets the password hash for the user.
| |
GetPasswordHashAsync(TUser, CancellationToken) |
Gets the password hash for the specified user.
(Inherited from ApplicationUserStoreTUser.) | |
GetRolesAsync(TUser) |
Returns all role names for the given user.
| |
GetRolesAsync(TUser, CancellationToken) |
Gets a list of role names the specified user belongs to.
(Inherited from ApplicationUserStoreTUser.) | |
GetSecurityStampAsync(TUser) |
Returns user's security stamp.
| |
GetSecurityStampAsync(TUser, CancellationToken) |
Get the security stamp for the specified user.
(Inherited from ApplicationUserStoreTUser.) | |
GetTwoFactorEnabledAsync |
Returns whether two factor authentication is enabled for the user.
| |
GetUserIdAsync |
Gets the user identifier for the specified user.
(Inherited from ApplicationUserStoreTUser.) | |
GetUserNameAsync |
Gets the user name for the specified user.
(Inherited from ApplicationUserStoreTUser.) | |
GetUsersInRoleAsync |
Returns a list of Users who are members of the named role.
(Inherited from ApplicationUserStoreTUser.) | |
HasPasswordAsync(TUser) |
Returns true if the user has the password set.
| |
HasPasswordAsync(TUser, CancellationToken) |
Gets a flag indicating whether the specified user has a password.
(Inherited from ApplicationUserStoreTUser.) | |
IncrementAccessFailedCountAsync | Obsolete.
Used to record when an attempt to access the user has failed.
| |
IsInRoleAsync(TUser, String) |
Checks whether user is in role with given role name.
| |
IsInRoleAsync(TUser, String, CancellationToken) |
Returns a flag indicating whether the specified user is a member of the given named role.
(Inherited from ApplicationUserStoreTUser.) | |
RemoveFromRoleAsync(TUser, String) |
Removes user from Role.
| |
RemoveFromRoleAsync(TUser, String, CancellationToken) |
Remove the specified user from the named role.
(Inherited from ApplicationUserStoreTUser.) | |
RemoveLoginAsync(TUser, UserLoginInfo) |
Removes external login to user.
| |
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.
(Inherited from ApplicationUserStoreTUser.) | |
ResetAccessFailedCountAsync | Obsolete.
Used to reset the access failed count, typically after the account is successfully accessed.
| |
SetEmailAsync(TUser, String) |
Sets the user email.
| |
SetEmailAsync(TUser, String, CancellationToken) |
Sets the email address for a user.
(Inherited from ApplicationUserStoreTUser.) | |
SetEmailConfirmedAsync(TUser, Boolean) |
Enables user if her email was confirmed.
| |
SetEmailConfirmedAsync(TUser, Boolean, CancellationToken) |
Sets the flag indicating whether the specified user's email address has been confirmed or not.
(Inherited from ApplicationUserStoreTUser.) | |
SetLockoutEnabledAsync | Obsolete.
Sets whether the user can be locked out.
| |
SetLockoutEndDateAsync | Obsolete.
Locks a user out until the specified end date (set to a past date, to unlock a user).
| |
SetNormalizedEmailAsync |
Sets the normalized email for the specified user.
(Inherited from ApplicationUserStoreTUser.) | |
SetNormalizedUserNameAsync |
Sets the given normalized name for the specified user.
(Inherited from ApplicationUserStoreTUser.) | |
SetPasswordHashAsync(TUser, String) |
Sets the password hash for the user.
| |
SetPasswordHashAsync(TUser, String, CancellationToken) |
Sets the password hash for the specified user.
(Inherited from ApplicationUserStoreTUser.) | |
SetSecurityStampAsync(TUser, String) |
Sets user's security stamp.
| |
SetSecurityStampAsync(TUser, String, CancellationToken) |
Sets the provided security stamp for the specified user.
(Inherited from ApplicationUserStoreTUser.) | |
SetTwoFactorEnabledAsync | Obsolete.
Sets whether two factor authentication is enabled for the user.
| |
SetUserNameAsync |
Sets the given userName for the specified user.
(Inherited from ApplicationUserStoreTUser.) | |
ThrowIfDisposed |
Throws if this class has been disposed.
(Inherited from ApplicationUserStoreTUser.) | |
UpdateAsync(TUser) |
Updates a user.
| |
UpdateAsync(TUser, CancellationToken) |
Updates the specified user in the user store.
(Inherited from ApplicationUserStoreTUser.) |