Microsoft.AspNet.Identity.Core
Static class to hold configuration settings for the Identity system
Settings class which holds the various options for the system
Helper class which contains methods that encapsulate common unit of work functionality on an IdentityStoreContext, i.e. ChangePasswordAsync or CreateLocalUserAsync and takes care of calling SaveChangesAsync
Constructor
Constructor that uses the default settings
Dispose the store context
When disposing, actually dipose the store context
User Login related APIs
Password API
Roles API
SaveChanges to the various identity stores
Settings object used for configuration, if null, uses the global settings (IdentityConfig.Settings)
IdentityStoreContext which the helper methods work against
Token API
APIs around User management
Settings used to configure an IdentityManager
Constructor
Only allow String.IsLetterOrDigits in UserNames
Identifier for user logins created by the local application, i.e. database
Minimum required length for a text
Validators passwords are of sufficient strength
Validates usernames
Represents the result of an identity operation
Constructor taking a success flag
Failure constructor that takes error messages
List of errors
Failed helper method
Success helper method
True if the operation was successful
Roles API
Constructor
Add a user to a role
Create a role
Delete a role, returns true if successful
Find a role by id
Find a role by name
Returns the roles for the user
Returns the users in the role
Returns true if the user is in the specified role
Returns true if the user was removed from the role
Returns true if the role exists
Store to operate on
Class that holds various settings for the identity system
Add a setting object with the specified key
Return a settings object, or create a new one if it does not exist
Return the IdentityManagerOptions
Return a settings object, or create a new one if it does not exist, will throw if the wrong type is present
Extension methods that use the default CancellationToken.None
Saves any changes to the stores (Note: stores are not required to support this pattern)
Factory used to construct IdentityManagers
Factory method used to construct an IdentityManager with the specified settings and context
Used to coordinate operations involving the user, login, roles, and claims stores SaveChangesAsync will persist the changes (if the stores support this concept)
Maps local userIds to login providers, i.e. a local username/password, Google, Facebook, Twitter, Microsoft
Stores role information
Saves any changes to the stores (Note: stores are not required to support this pattern)
Store used to store user name/hashed passwords
Stores arbitrary tokens (i.e. access tokens, refresh tokens, confirmation tokens)
Stores claims for users
Store responsible for managing users (confirmation, lockout)
Store responsible for creating/deleting/retrieving users by userId
Login related APIs: managing local or external logins
Create the specified user name and password local login
Associate a login with a user (external or local)
Returns a list of logins for a user
Returns the local user id for a user login that matches
Returns the userId if there is a local login with the specified userName, null otherwise
Returns true if the userId has a local login
Remove a user login
Password related APIs: changing user name passwords, resetting passwords
Change a user's password
Validates a local user name/password combination
Create a token for the specified user that can be used to reset his password
Reset a user's password with the reset password token
Minimal set of data needed to persist role data
Id of the role
Role related APIs
Add a user to a role
Create a role
Delete a role, returns true if successful
Find a role by id
Find a role by name
Returns the roles for the user
Returns the users in the role
Returns true if the user is in the specified role
Returns true if the user was removed from the role
Returns true if the role exists
Interface for managing the creation and membership of roles
Interface used to specify custom username/text validation
Validates a string.
A result with set to when validation succeeds; otherwise, a result with set to .
Interface for a token
Unique identifier for the token
Token is valid until this date
Value of the token
Token related APIs
Add a new token to the store
Find a token in the TokenStore
Remove a token from the TokenStore
Store that contains tokens which can be used for different purposes (confirmation, access, refresh) and with expiration
Add a token to the store
Creates the appropriate IToken instance
Find a token
Remove a token from the store
Update a token
Minimal interface for a user with a string user key
Unique key for the user
The unique key for the user
Represents a claim for a user
ClaimType for the user claim
value for the user's claim
UserId for the user with the claim
Stores claims for users.
Store a claim for the user with the specified type/value.
The task that performs the asynchronous operation.
The user claim.
The cancellation token.
Returns the claims for the user with the issuer set.
The task that performs the asynchronous operation.
The user ID.
The cancellation token.
RemoveAsync a user claim.
The task that performs the asynchronous operation.
The user ID.
The claim type.
The claim value.
The cancellation token.
Represents a linked login for a user (i.e. a local username/password or a Facebook/Google account
Provider for the linked login, i.e. Local, Facebook, Google, etc.
Key for the linked login at the provider
UserId for the user who owns this account
Maps local userIds to account providers, i.e. a local username/password, Google, Facebook, Twitter, Microsoft
Minimal interface for holding user management info (i.e. Confirmed, LastSignInTime)
Set if user is not allowed to sign in
Last time the user was signed in
Unique key for the user
Responsible for creating/deleting/retrieving user management info
Creates the specified IUserManagement object
Creates the appropriate IUserManagement instance for the user
Deletes the specified IUserManagement for the userId
Finds an IUserManagement by its key
Update the specified IUserManagement object
User related APIs: creating users, adding claims
Add a new user claim to the store
Create a user with an associated external login
Create a user with a linked local login with the specified password
Create a user and its associated user management object
Get a users claims
Remove a user claim
Minimal set of data needed to persist login data
Opaque string to validate the user, i.e. password
Username
Stores login information (username/secret)
Responsible for creating/deleting/retrieving users by userId
Create the specified user name and password local login
Associate a login with a user (external or local)
Returns a list of logins for a user
Returns the local user id for a user login that matches
Returns the userId if there is a local login with the specified userName, null otherwise
Returns true if the userId has a local login
Remove a user login
Extension methods for ILoginManager
Password APIs
Constructor
Change a user's password
Validates a local user name/password combination
Create a token for the specified user that can be used to reset his password
Reset a user's password with the reset password token
Extension methods for IPasswordManager
Extension methods for IRoleManager
Add a user to a role
Create a role
Delete a role, returns true if successful
Find a role by id
Find a role by name
Returns the roles for the user
Returns the users in the role
Returns true if the user is in the specified role
Returns true if the user was removed from the role
Returns true if the role exists
Token related APIs
Constructor
Add a new token to the store
Find a token in the TokenStore
Remove a token from the TokenStore
Store to operate on
Extension methods for ITokenManager
User related API
Constructor
Add a new user claim to the store
Create a user with an associated external login
Create a user with a linked local login with the specified password
Create a user and its associated user management object
Get a users claims
IdentityManager to operate on
Remove a user claim
Extension methods for IUserManager
Createa user with an associated external login
CreateAsync a user with a linked local login with the specified password
Create a user and its associated user management object
Create a user and its associated user management object