Microsoft.AspNetCore.Identity Namespace

Contains types for using Entity Framework Core with Identity on ASP.NET Core.

Classes

AspNetRoleManager<TRole>

Provides the APIs for managing roles in a persistence store.

AspNetUserManager<TUser>

Provides the APIs for managing user in a persistence store.

AuthenticatorTokenProvider<TUser>

Used for authenticator code verification.

ClaimsIdentityOptions

Options used to configure the claim types used for well known claims.

DataProtectionTokenProviderOptions

Contains options for the DataProtectorTokenProvider<TUser>.

DataProtectorTokenProvider<TUser>

Provides protection and validation of identity tokens.

DefaultPersonalDataProtector

Default implementation of IPersonalDataProtector that uses ILookupProtectorKeyRing and ILookupProtector to protect data with a payload format of {keyId}:{protectedData}

DefaultUserConfirmation<TUser>

Default implementation of IUserConfirmation<TUser>.

EmailTokenProvider<TUser>

TokenProvider that generates tokens from the user's security stamp and notifies a user via email.

ExternalLoginInfo

Represents login information, source and externally source principal for a user record

IdentityBuilder

Helper functions for configuring identity services.

IdentityBuilderExtensions

Helper functions for configuring identity services.

IdentityBuilderUIExtensions

Default UI extensions to IdentityBuilder.

IdentityConstants

Represents all the options you can use to configure the cookies middleware used by the identity system.

IdentityCookieAuthenticationBuilderExtensions

Helper functions for configuring identity services.

IdentityCookieOptions

Represents all the options you can use to configure the cookies middleware uesd by the identity system.

IdentityCookiesBuilder

Used to configure identity cookie options.

IdentityError

Encapsulates an error from the identity subsystem.

IdentityErrorDescriber

Service to enable localization for application facing identity errors.

IdentityMarkerService

Used to verify AddIdentity was called on a ServiceCollection

IdentityOptions

Represents all the options you can use to configure the identity system.

IdentityResult

Represents the result of an identity operation.

IdentityRole

The default implementation of IdentityRole<TKey> which uses a string as the primary key.

IdentityRole<TKey>

Represents a role in the identity system

IdentityRoleClaim<TKey>

Represents a claim that is granted to all users within a role.

IdentitySchemaVersions

Contains various identity version constants.

IdentityUser

The default implementation of IdentityUser<TKey> which uses a string as a primary key.

IdentityUser<TKey>

Represents a user in the identity system

IdentityUserClaim<TKey>

Represents a claim that a user possesses.

IdentityUserLogin<TKey>

Represents a login and its associated provider for a user.

IdentityUserRole<TKey>

Represents the link between a user and a role.

IdentityUserToken<TKey>

Represents an authentication token for a user.

LockoutOptions

Options for configuring user lockout.

PasswordHasher<TUser>

Implements the standard Identity password hashing.

PasswordHasherOptions

Specifies options for password hashing.

PasswordOptions

Specifies options for password requirements.

PasswordValidator<TUser>

Provides the default password policy for Identity.

PersonalDataAttribute

Used to indicate that a something is considered personal data.

PhoneNumberTokenProvider<TUser>

Represents a token provider that generates tokens from a user's security stamp and sends them to the user via their phone number.

ProtectedPersonalDataAttribute

Used to indicate that a something is considered personal data and should be protected.

RoleManager<TRole>

Provides the APIs for managing roles in a persistence store.

RoleStoreBase<TRole,TKey,TUserRole,TRoleClaim>

Creates a new instance of a persistence store for roles.

RoleValidator<TRole>

Provides the default validation of roles.

SecurityStampRefreshingPrincipalContext

Used to pass information during the SecurityStamp validation event.

SecurityStampValidator

Static helper class used to configure a CookieAuthenticationNotifications to validate a cookie against a user's security stamp.

SecurityStampValidator<TUser>

Provides default implementation of validation functions for security stamps.

SecurityStampValidatorOptions

Options for ISecurityStampValidator.

SignInManager<TUser>

Provides the APIs for user sign in.

SignInOptions

Options for configuring sign in.

SignInResult

Represents the result of a sign-in operation.

StoreOptions

Used for store specific options

TokenOptions

Options for user tokens.

TokenProviderDescriptor

Used to represents a token provider in TokenOptions's TokenMap.

TotpSecurityStampBasedTokenProvider<TUser>

Represents a token provider that generates time-based codes using the user's security stamp.

TwoFactorSecurityStampValidator<TUser>

Responsible for validation of two factor identity cookie security stamp.

UpperInvariantLookupNormalizer

Implements ILookupNormalizer by converting keys to their upper cased invariant culture representation.

UserClaimsPrincipalFactory<TUser>

Provides methods to create a claims principal for a given user.

UserClaimsPrincipalFactory<TUser,TRole>

Provides methods to create a claims principal for a given user.

UserLoginInfo

Represents login information and source for a user record.

UserManager<TUser>

Provides the APIs for managing user in a persistence store.

UserOptions

Options for user validation.

UserStoreBase<TUser,TKey,TUserClaim,TUserLogin,TUserToken>

Represents a new instance of a persistence store for the specified user type.

UserStoreBase<TUser,TRole,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>

Represents a new instance of a persistence store for the specified user and role types.

UserValidator<TUser>

Provides validation services for user classes.

Interfaces

IEmailSender<TUser>

This API supports the ASP.NET Core Identity infrastructure and is not intended to be used as a general purpose email abstraction. It should be implemented by the application so the Identity infrastructure can send confirmation and password reset emails.

ILookupNormalizer

Provides an abstraction for normalizing keys (emails/names) for lookup purposes.

ILookupProtector

Used to protect/unprotect lookups with a specific key.

ILookupProtectorKeyRing

Abstraction used to manage named keys used to protect lookups.

IPasswordHasher<TUser>

Provides an abstraction for hashing passwords.

IPasswordValidator<TUser>

Provides an abstraction for validating passwords.

IPersonalDataProtector

Provides an abstraction used for personal data encryption.

IProtectedUserStore<TUser>

Marker interface used to signal that the store supports the ProtectPersonalData flag.

IQueryableRoleStore<TRole>

Provides an abstraction for querying roles in a Role store.

IQueryableUserStore<TUser>

Provides an abstraction for querying users in a User store.

IRoleClaimStore<TRole>

Provides an abstraction for a store of role specific claims.

IRoleStore<TRole>

Provides an abstraction for a storage and management of roles.

IRoleValidator<TRole>

Provides an abstraction for a validating a role.

ISecurityStampValidator

Provides an abstraction for a validating a security stamp of an incoming identity, and regenerating or rejecting the identity based on the validation result.

ITwoFactorSecurityStampValidator

Used to validate the two factor remember client cookie security stamp.

IUserAuthenticationTokenStore<TUser>

Provides an abstraction to store a user's authentication tokens.

IUserAuthenticatorKeyStore<TUser>

Provides an abstraction for a store which stores info about user's authenticator.

IUserClaimsPrincipalFactory<TUser>

Provides an abstraction for a factory to create a ClaimsPrincipal from a user.

IUserClaimStore<TUser>

Provides an abstraction for a store of claims for a user.

IUserConfirmation<TUser>

Provides an abstraction for confirmation of user accounts.

IUserEmailStore<TUser>

Provides an abstraction for the storage and management of user email addresses.

IUserLockoutStore<TUser>

Provides an abstraction for a storing information which can be used to implement account lockout, including access failures and lockout status

IUserLoginStore<TUser>

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

IUserPasswordStore<TUser>

Provides an abstraction for a store containing users' password hashes.

IUserPhoneNumberStore<TUser>

Provides an abstraction for a store containing users' telephone numbers.

IUserRoleStore<TUser>

Provides an abstraction for a store which maps users to roles.

IUserSecurityStampStore<TUser>

Provides an abstraction for a store which stores a user's security stamp.

IUserStore<TUser>

Provides an abstraction for a store which manages user accounts.

IUserTwoFactorRecoveryCodeStore<TUser>

Provides an abstraction for a store which stores a user's recovery codes.

IUserTwoFactorStore<TUser>

Provides an abstraction to store a flag indicating whether a user has two factor authentication enabled.

IUserTwoFactorTokenProvider<TUser>

Provides an abstraction for two-factor token generators.

IUserValidator<TUser>

Provides an abstraction for user validation.

Enums

PasswordHasherCompatibilityMode

Specifies the format used for hashing passwords.

PasswordVerificationResult

Specifies the results for password verification.

Remarks

For more information about Identity, see Introduction to Identity on ASP.NET Core.