Microsoft.AspNet.Identity Namespace

The Microsoft.AspNet.Identity namespace contains classes and interfaces related to managing users and roles for ASP.NET Identity.

Classes

  Class Description
Public class ClaimsIdentityFactory<TUser> Creates a ClaimsIdentity from a User
Public class DefaultAuthenticationTypes Default authentication types values
Public class IdentityExtensions Extensions making it easier to get the user name/user id claims off of an identity.
Public class IdentityResult Represents the result of an identity operation
Public class MinimumLengthValidator Used to validate that strings are a minimum length
Public class PasswordHasher Implements password hashing methods
Public class RoleManager<TRole> Exposes role related api which will automatically save changes to the RoleStore
Public class RoleManagerExtensions Extension methods for IRoleManager
Public class RoleValidator<TRole> Validates roles before they are saved to an IRoleStore
Public class UserLoginInfo Represents a linked login for a user (i.e. a local username/password or a facebook/google account
Public class UserManager<TUser> Exposes user related api which will automatically save changes to the UserStore
Public class UserManagerExtensions Extension methods for IUserManager
Public class UserValidator<TUser> Validates users before they are saved to an IUserStore

Interfaces

  Interface Description
Public interface IClaimsIdentityFactory<TUser> Interface for creating a ClaimsIdentity from an IUser
Public interface IIdentityValidator<T> Used to validate an item
Public interface IPasswordHasher Abstraction for password hashing methods
Public interface IRole Minimal set of data needed to persist role data
Public interface IRoleStore<TRole> Interface that exposes basic role management
Public interface IUser Minimal interface for a user with a string user key
Public interface IUserClaimStore<TUser> Stores user specific claims
Public interface IUserLoginStore<TUser> Interface that maps users to login providers, i.e. Google, Facebook, Twitter, Microsoft
Public interface IUserPasswordStore<TUser> Stores a user's password hash
Public interface IUserRoleStore<TUser> Interface that maps users to login providers, i.e. Google, Facebook, Twitter, Microsoft
Public interface IUserSecurityStampStore<TUser> Stores a user's security stamp
Public interface IUserStore<TUser> Interface that exposes basic user management apis

Enumerations

  Enumeration Description
Public enumeration PasswordVerificationResult Return result for IPasswordHasher