Microsoft.AspNetCore.Identity.EntityFrameworkCore 10.0.0-preview.7.25380.108
About
Microsoft.AspNetCore.Identity.EntityFrameworkCore
utilizes Entity Framework Core to provide functionality enabling the storage of user, role, and other identity-related data in a database.
Key Features
- Provides user and role management
- Enables secure authentication and authorization mechanisms
- Allows storage and validatation of user passwords using hashing
- Tracks email confirmation for user account validation
- Tracks two-factor authentication to provide an extra layer of security
- Tracks failed login attempts to help protect against brute-force attacks enabling locking out user accounts after multiple failed login attempts
- Uses claims to define fine-grained access control policies
- Seamlessly integrates with Entity Framework Core for data storage and retrieval
How to Use
To use Microsoft.AspNetCore.Identity.EntityFrameworkCore
, follow these steps:
Installation
dotnet add package Microsoft.AspNetCore.Identity.EntityFrameworkCore
Configuration
Add the following code to the Program.cs
of your ASP.NET Core app:
builder.Services.AddDbContext<ApplicationDbContext>(options =>
options.UseSqlServer(builder.Configuration.GetConnectionString("DefaultConnection")));
builder.Services.AddDefaultIdentity<ApplicationUser>()
.AddEntityFrameworkStores<ApplicationDbContext>();
You can replace ApplicationDbContext
with your own database context class derived from IdentityDbContext
and ApplicationUser
with your own user class containing additional properties derived from IdentityUser
.
Make sure to configure the connection string via "ConnectionStrings:DefaultConnection" (or whatever you rename it to) so it can connect to your database.
Main Types
The main types provided by Microsoft.AspNetCore.Identity.EntityFrameworkCore
include:
IdentityDbContext
: Provides the database context for storing and managing user, role, and other identity-related dataIdentityUserContext
: Provides methods and properties for querying and manipulating user informationRoleStore
: Provides methods for creating, updating, and deleting roles, as well as querying and managing role-related dataUserStore
: Provides methods for creating, updating, and deleting users, as well as querying and managing user-related dataUserOnlyStore
: Provides methods for creating, updating, and deleting users, as well as querying and managing user-related data for users without roles
Additional Documentation
For additional documentation and examples, refer to the official documentation on ASP.NET Core Identity.
Feedback & Contributing
Microsoft.AspNetCore.Identity.EntityFrameworkCore
is released as open-source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.
Showing the top 20 packages that depend on Microsoft.AspNetCore.Identity.EntityFrameworkCore.
Packages | Downloads |
---|---|
Audit.EntityFramework.Core
Generate Audit Logs from EntityFramework context changes
|
31 |
Audit.EntityFramework.Core
Generate Audit Logs from EntityFramework context changes
|
35 |
Audit.EntityFramework.Identity.Core
Generate Audit Logs from EntityFramework identity context changes
|
29 |
Audit.EntityFramework.Identity.Core
Generate Audit Logs from EntityFramework identity context changes
|
30 |
Audit.EntityFramework.Identity.Core
Generate Audit Logs from EntityFramework identity context changes
|
31 |
Audit.EntityFramework.Identity.Core
Generate Audit Logs from EntityFramework identity context changes
|
32 |
Audit.EntityFramework.Identity.Core
Generate Audit Logs from EntityFramework identity context changes
|
33 |
Audit.EntityFramework.Identity.Core
Generate Audit Logs from EntityFramework identity context changes
|
125 |
Audit.EntityFramework.Identity.Core
Generate Audit Logs from EntityFramework identity context changes
|
159 |
Microsoft.AspNetCore.ApiAuthorization.IdentityServer
ASP.NET Core API Authorization package powered by Identity Server.
This package was built from the source code at https://github.com/aspnet/AspNetCore/tree/1f49b6637a0c3a6af34b42332e06966e4d383d54
|
30 |
Microsoft.AspNetCore.ApiAuthorization.IdentityServer
ASP.NET Core API Authorization package powered by Identity Server.
This package was built from the source code at https://github.com/aspnet/AspNetCore/tree/c3acdcac86dad91c3d3fbc3b93ecc6b7ba494bdc
|
30 |
Microsoft.AspNetCore.ApiAuthorization.IdentityServer
ASP.NET Core API Authorization package powered by Identity Server.
This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/2924ca229b3d6c91b7c9eded119b31dfd7aa1fef
|
33 |
Microsoft.AspNetCore.ApiAuthorization.IdentityServer
ASP.NET Core API Authorization package powered by Identity Server.
This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/371a26f07b23ad77c636332c2dfc0cbd1d8137ba
|
50 |
Microsoft.AspNetCore.ApiAuthorization.IdentityServer
ASP.NET Core API Authorization package powered by Identity Server.
This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/b7a2ec8c7ed6b48857af0a69688a73e8c14fe6cb
|
49 |
Microsoft.AspNetCore.ApiAuthorization.IdentityServer
ASP.NET Core API Authorization package powered by Identity Server.
This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/b92c9f50f0333ea661785ba849f303cde6a93844
|
39 |
Microsoft.AspNetCore.ApiAuthorization.IdentityServer
ASP.NET Core API Authorization package powered by Identity Server.
This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/fc93e595ceffbb1e3e85532bf454e92a6a80dd6b
|
53 |
Microsoft.AspNetCore.Identity.Service.EntityFrameworkCore
ASP.NET Core Identity Service implementation based on ASP.NET Core Identity.
|
32 |
.NET 10.0
- Microsoft.Extensions.Identity.Stores (>= 10.0.0-preview.7.25380.108)
- Microsoft.EntityFrameworkCore.Relational (>= 10.0.0-preview.7.25380.108)
Version | Downloads | Last updated |
---|---|---|
10.0.0-preview.7.25380.108 | 2 | 08/12/2025 |
10.0.0-preview.6.25358.103 | 3 | 07/21/2025 |
10.0.0-preview.5.25277.114 | 10 | 06/08/2025 |
10.0.0-preview.4.25258.110 | 11 | 05/18/2025 |
10.0.0-preview.3.25172.1 | 9 | 04/24/2025 |
10.0.0-preview.2.25164.1 | 11 | 03/29/2025 |
10.0.0-preview.1.25120.3 | 12 | 03/05/2025 |
9.0.8 | 2 | 08/12/2025 |
9.0.7 | 2 | 07/22/2025 |
9.0.6 | 5 | 06/14/2025 |
9.0.5 | 9 | 05/17/2025 |
9.0.4 | 14 | 04/25/2025 |
9.0.3 | 11 | 03/16/2025 |
9.0.2 | 11 | 03/04/2025 |
9.0.1 | 14 | 01/20/2025 |
9.0.0 | 13 | 11/17/2024 |
9.0.0-rc.2.24474.3 | 15 | 10/09/2024 |
9.0.0-rc.1.24452.1 | 21 | 09/13/2024 |
9.0.0-preview.7.24406.2 | 18 | 08/13/2024 |
9.0.0-preview.6.24328.4 | 18 | 07/11/2024 |
9.0.0-preview.5.24306.11 | 18 | 06/14/2024 |
9.0.0-preview.4.24267.6 | 16 | 05/22/2024 |
9.0.0-preview.3.24172.13 | 14 | 04/15/2024 |
9.0.0-preview.2.24128.4 | 23 | 03/15/2024 |
9.0.0-preview.1.24081.5 | 22 | 02/14/2024 |
8.0.19 | 2 | 08/12/2025 |
8.0.18 | 4 | 07/21/2025 |
8.0.17 | 5 | 06/14/2025 |
8.0.16 | 7 | 05/17/2025 |
8.0.15 | 8 | 04/25/2025 |
8.0.14 | 11 | 03/16/2025 |
8.0.13 | 10 | 02/28/2025 |
8.0.12 | 12 | 01/21/2025 |
8.0.11 | 12 | 11/18/2024 |
8.0.10 | 16 | 10/10/2024 |
8.0.8 | 20 | 08/13/2024 |
8.0.7 | 15 | 07/11/2024 |
8.0.6 | 12 | 05/30/2024 |
8.0.5 | 12 | 05/22/2024 |
8.0.4 | 16 | 04/10/2024 |
8.0.3 | 19 | 03/15/2024 |
8.0.2 | 21 | 02/15/2024 |
8.0.1 | 19 | 02/13/2024 |
8.0.0 | 22 | 02/13/2024 |
8.0.0-rc.2.23480.2 | 36 | 12/13/2023 |
8.0.0-rc.1.23421.29 | 17 | 02/13/2024 |
8.0.0-preview.7.23375.9 | 25 | 02/13/2024 |
8.0.0-preview.6.23329.11 | 22 | 02/13/2024 |
8.0.0-preview.5.23302.2 | 28 | 02/13/2024 |
8.0.0-preview.4.23260.4 | 21 | 02/13/2024 |
8.0.0-preview.3.23177.8 | 19 | 02/13/2024 |
8.0.0-preview.2.23153.2 | 21 | 02/13/2024 |
8.0.0-preview.1.23112.2 | 16 | 02/13/2024 |
7.0.20 | 14 | 06/06/2024 |
7.0.19 | 16 | 05/22/2024 |
7.0.18 | 16 | 04/10/2024 |
7.0.17 | 20 | 03/15/2024 |
7.0.16 | 20 | 02/15/2024 |
7.0.15 | 18 | 02/13/2024 |
7.0.14 | 27 | 02/02/2024 |
7.0.13 | 17 | 02/13/2024 |
7.0.12 | 19 | 01/14/2024 |
7.0.11 | 25 | 02/13/2024 |
7.0.10 | 16 | 01/29/2024 |
7.0.9 | 26 | 02/13/2024 |
7.0.8 | 17 | 02/13/2024 |
7.0.7 | 16 | 01/09/2024 |
7.0.5 | 21 | 02/13/2024 |
7.0.4 | 16 | 02/13/2024 |
7.0.3 | 25 | 03/15/2024 |
7.0.2 | 15 | 02/13/2024 |
7.0.1 | 20 | 02/13/2024 |
7.0.0 | 20 | 11/23/2022 |
7.0.0-rc.2.22476.2 | 21 | 02/13/2024 |
7.0.0-rc.1.22427.2 | 19 | 02/13/2024 |
7.0.0-preview.7.22376.6 | 21 | 02/13/2024 |
7.0.0-preview.6.22330.3 | 23 | 02/13/2024 |
7.0.0-preview.5.22303.8 | 20 | 02/13/2024 |
7.0.0-preview.4.22251.1 | 19 | 02/13/2024 |
7.0.0-preview.3.22178.4 | 25 | 04/27/2022 |
7.0.0-preview.2.22153.2 | 16 | 02/13/2024 |
7.0.0-preview.1.22109.13 | 19 | 02/13/2024 |
6.0.36 | 19 | 11/18/2024 |
6.0.35 | 18 | 10/10/2024 |
6.0.33 | 16 | 08/13/2024 |
6.0.32 | 15 | 07/11/2024 |
6.0.31 | 13 | 05/30/2024 |
6.0.30 | 15 | 05/22/2024 |
6.0.29 | 17 | 04/10/2024 |
6.0.28 | 19 | 03/15/2024 |
6.0.27 | 20 | 02/15/2024 |
6.0.26 | 16 | 02/13/2024 |
6.0.25 | 21 | 02/01/2024 |
6.0.24 | 20 | 01/29/2024 |
6.0.23 | 20 | 02/13/2024 |
6.0.22 | 22 | 02/13/2024 |
6.0.21 | 19 | 01/31/2024 |
6.0.20 | 28 | 01/23/2024 |
6.0.19 | 21 | 02/13/2024 |
6.0.18 | 17 | 02/13/2024 |
6.0.16 | 19 | 02/13/2024 |
6.0.15 | 28 | 02/13/2024 |
6.0.14 | 18 | 02/13/2024 |
6.0.13 | 22 | 02/11/2024 |
6.0.12 | 18 | 01/22/2024 |
6.0.11 | 22 | 11/16/2022 |
6.0.10 | 25 | 01/10/2024 |
6.0.9 | 17 | 02/13/2024 |
6.0.8 | 30 | 08/10/2022 |
6.0.7 | 17 | 02/13/2024 |
6.0.6 | 14 | 02/13/2024 |
6.0.5 | 22 | 01/27/2024 |
6.0.4 | 24 | 04/29/2022 |
6.0.3 | 184 | 03/09/2022 |
6.0.2 | 15 | 03/03/2023 |
6.0.1 | 71 | 12/15/2021 |
6.0.0 | 29 | 11/19/2021 |
6.0.0-rc.2.21480.10 | 29 | 02/13/2024 |
6.0.0-rc.1.21452.15 | 17 | 02/13/2024 |
6.0.0-preview.7.21378.6 | 21 | 04/01/2022 |
6.0.0-preview.6.21355.2 | 21 | 02/13/2024 |
6.0.0-preview.5.21301.17 | 17 | 01/22/2024 |
6.0.0-preview.4.21253.5 | 23 | 02/07/2024 |
6.0.0-preview.3.21201.13 | 15 | 02/13/2024 |
6.0.0-preview.2.21154.6 | 21 | 01/24/2024 |
6.0.0-preview.1.21103.6 | 19 | 02/13/2024 |
5.0.17 | 18 | 02/02/2024 |
5.0.16 | 25 | 02/08/2024 |
5.0.15 | 16 | 02/13/2024 |
5.0.14 | 24 | 01/30/2024 |
5.0.13 | 22 | 02/08/2024 |
5.0.12 | 22 | 12/09/2021 |
5.0.11 | 18 | 02/13/2024 |
5.0.10 | 179 | 09/15/2021 |
5.0.9 | 43 | 09/02/2021 |
5.0.8 | 20 | 07/13/2021 |
5.0.7 | 17 | 06/08/2021 |
5.0.6 | 18 | 05/11/2021 |
5.0.5 | 82 | 04/06/2021 |
5.0.4 | 40 | 03/09/2021 |
5.0.3 | 18 | 02/09/2021 |
5.0.2 | 48 | 01/13/2021 |
5.0.1 | 49 | 12/08/2020 |
5.0.0 | 49 | 11/10/2020 |
5.0.0-rc.2.20475.17 | 21 | 02/02/2024 |
5.0.0-rc.1.20451.17 | 21 | 02/13/2024 |
5.0.0-preview.8.20414.8 | 20 | 02/04/2024 |
5.0.0-preview.7.20365.19 | 18 | 02/13/2024 |
5.0.0-preview.6.20312.15 | 18 | 02/13/2024 |
5.0.0-preview.5.20279.2 | 17 | 02/13/2024 |
5.0.0-preview.4.20257.10 | 19 | 03/15/2024 |
5.0.0-preview.3.20215.14 | 25 | 02/13/2024 |
5.0.0-preview.2.20167.3 | 18 | 02/13/2024 |
5.0.0-preview.1.20124.5 | 29 | 02/13/2024 |
3.1.32 | 18 | 01/15/2024 |
3.1.31 | 20 | 02/05/2024 |
3.1.30 | 20 | 02/13/2024 |
3.1.29 | 18 | 02/13/2024 |
3.1.28 | 15 | 01/09/2024 |
3.1.27 | 17 | 02/13/2024 |
3.1.26 | 28 | 02/13/2024 |
3.1.25 | 20 | 02/13/2024 |
3.1.24 | 17 | 01/14/2024 |
3.1.23 | 18 | 01/20/2024 |
3.1.22 | 26 | 01/06/2024 |
3.1.21 | 19 | 02/13/2024 |
3.1.20 | 20 | 02/13/2024 |
3.1.19 | 18 | 02/13/2024 |
3.1.18 | 21 | 01/31/2024 |
3.1.17 | 20 | 02/13/2024 |
3.1.16 | 20 | 02/13/2024 |
3.1.15 | 22 | 02/13/2024 |
3.1.14 | 20 | 02/13/2024 |
3.1.13 | 67 | 03/30/2021 |
3.1.12 | 17 | 02/13/2024 |
3.1.11 | 20 | 01/21/2024 |
3.1.10 | 23 | 02/13/2024 |
3.1.9 | 23 | 11/09/2020 |
3.1.8 | 16 | 02/13/2024 |
3.1.7 | 18 | 02/13/2024 |
3.1.6 | 16 | 02/13/2024 |
3.1.5 | 15 | 01/27/2024 |
3.1.4 | 18 | 02/13/2024 |
3.1.3 | 18 | 02/13/2024 |
3.1.2 | 19 | 02/13/2024 |
3.1.1 | 18 | 01/09/2024 |
3.1.0 | 19 | 01/12/2021 |
3.1.0-preview3.19555.2 | 20 | 02/06/2024 |
3.1.0-preview2.19528.8 | 20 | 02/13/2024 |
3.1.0-preview1.19508.20 | 23 | 02/13/2024 |
3.0.3 | 14 | 01/26/2024 |
3.0.2 | 22 | 02/13/2024 |
3.0.0 | 27 | 11/30/2020 |
3.0.0-rc1.19457.4 | 19 | 02/13/2024 |
3.0.0-preview9.19424.4 | 20 | 02/13/2024 |
3.0.0-preview8.19405.7 | 20 | 02/13/2024 |
3.0.0-preview7.19365.7 | 21 | 02/13/2024 |
3.0.0-preview6.19307.2 | 22 | 02/13/2024 |
3.0.0-preview5-19227-01 | 18 | 02/13/2024 |
3.0.0-preview4-19216-03 | 18 | 02/13/2024 |
3.0.0-preview3-19153-02 | 22 | 02/13/2024 |
3.0.0-preview-19075-0444 | 25 | 02/13/2024 |
3.0.0-preview-18579-0056 | 19 | 02/13/2024 |
2.3.0 | 10 | 01/22/2025 |
2.2.0 | 26 | 06/23/2020 |
2.2.0-preview3-35497 | 16 | 02/13/2024 |
2.2.0-preview2-35157 | 17 | 02/13/2024 |
2.2.0-preview1-35029 | 22 | 01/24/2024 |
2.1.6 | 22 | 10/08/2021 |
2.1.3 | 20 | 02/13/2024 |
2.1.2 | 19 | 01/25/2024 |
2.1.1 | 16 | 02/13/2024 |
2.1.0 | 22 | 02/17/2021 |
2.1.0-rc1-final | 16 | 02/13/2024 |
2.1.0-preview2-final | 17 | 02/13/2024 |
2.1.0-preview1-final | 25 | 01/16/2024 |
2.0.4 | 17 | 02/13/2024 |
2.0.3 | 17 | 02/13/2024 |
2.0.2 | 16 | 02/13/2024 |
2.0.1 | 15 | 02/13/2024 |
2.0.0 | 18 | 02/13/2024 |
2.0.0-preview2-final | 17 | 02/13/2024 |
2.0.0-preview1-final | 19 | 02/13/2024 |
1.1.6 | 18 | 02/13/2024 |
1.1.5 | 37 | 03/15/2024 |
1.1.4 | 15 | 02/13/2024 |
1.1.3 | 21 | 02/13/2024 |
1.1.2 | 15 | 02/13/2024 |
1.1.1 | 41 | 02/13/2024 |
1.1.0 | 18 | 02/13/2024 |
1.1.0-preview1-final | 22 | 02/09/2024 |
1.0.6 | 18 | 02/13/2024 |
1.0.5 | 16 | 02/13/2024 |
1.0.4 | 15 | 02/13/2024 |
1.0.3 | 21 | 02/13/2024 |
1.0.2 | 18 | 02/13/2024 |
1.0.1 | 18 | 02/13/2024 |
1.0.0 | 28 | 02/07/2024 |
1.0.0-rc2-final | 18 | 01/20/2024 |