Microsoft.AspNetCore.Identity.EntityFrameworkCore 10.0.0-rc.1.25451.107

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 data
  • IdentityUserContext: Provides methods and properties for querying and manipulating user information
  • RoleStore: Provides methods for creating, updating, and deleting roles, as well as querying and managing role-related data
  • UserStore: Provides methods for creating, updating, and deleting users, as well as querying and managing user-related data
  • UserOnlyStore: 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
33
Audit.EntityFramework.Core
Generate Audit Logs from EntityFramework context changes
39
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
34
Audit.EntityFramework.Identity.Core
Generate Audit Logs from EntityFramework identity context changes
35
Audit.EntityFramework.Identity.Core
Generate Audit Logs from EntityFramework identity context changes
37
Audit.EntityFramework.Identity.Core
Generate Audit Logs from EntityFramework identity context changes
130
Audit.EntityFramework.Identity.Core
Generate Audit Logs from EntityFramework identity context changes
162
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
34
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
35
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
52
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
51
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
41
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/d827c653b787c07de908240b7746ce34d3e6271e
32
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
56
Microsoft.AspNetCore.Identity.Service.EntityFrameworkCore
ASP.NET Core Identity Service implementation based on ASP.NET Core Identity.
34

.NET 10.0

Version Downloads Last updated
10.0.0-rc.2.25502.107 1 10/27/2025
10.0.0-rc.1.25451.107 1 10/27/2025
10.0.0-preview.7.25380.108 6 08/12/2025
10.0.0-preview.6.25358.103 6 07/21/2025
10.0.0-preview.5.25277.114 13 06/08/2025
10.0.0-preview.4.25258.110 13 05/18/2025
10.0.0-preview.3.25172.1 11 04/24/2025
10.0.0-preview.2.25164.1 12 03/29/2025
10.0.0-preview.1.25120.3 14 03/05/2025
9.0.10 1 10/27/2025
9.0.9 2 09/19/2025
9.0.8 5 08/12/2025
9.0.7 5 07/22/2025
9.0.6 8 06/14/2025
9.0.5 11 05/17/2025
9.0.4 16 04/25/2025
9.0.3 13 03/16/2025
9.0.2 13 03/04/2025
9.0.1 16 01/20/2025
9.0.0 14 11/17/2024
9.0.0-rc.2.24474.3 17 10/09/2024
9.0.0-rc.1.24452.1 24 09/13/2024
9.0.0-preview.7.24406.2 20 08/13/2024
9.0.0-preview.6.24328.4 21 07/11/2024
9.0.0-preview.5.24306.11 19 06/14/2024
9.0.0-preview.4.24267.6 17 05/22/2024
9.0.0-preview.3.24172.13 15 04/15/2024
9.0.0-preview.2.24128.4 25 03/15/2024
9.0.0-preview.1.24081.5 23 02/14/2024
8.0.21 1 10/27/2025
8.0.20 1 10/24/2025
8.0.19 5 08/12/2025
8.0.18 7 07/21/2025
8.0.17 8 06/14/2025
8.0.16 9 05/17/2025
8.0.15 10 04/25/2025
8.0.14 13 03/16/2025
8.0.13 14 02/28/2025
8.0.12 14 01/21/2025
8.0.11 14 11/18/2024
8.0.10 18 10/10/2024
8.0.8 24 08/13/2024
8.0.7 17 07/11/2024
8.0.6 14 05/30/2024
8.0.5 14 05/22/2024
8.0.4 19 04/10/2024
8.0.3 21 03/15/2024
8.0.2 24 02/15/2024
8.0.1 21 02/13/2024
8.0.0 24 02/13/2024
8.0.0-rc.2.23480.2 37 12/13/2023
8.0.0-rc.1.23421.29 19 02/13/2024
8.0.0-preview.7.23375.9 26 02/13/2024
8.0.0-preview.6.23329.11 24 02/13/2024
8.0.0-preview.5.23302.2 30 02/13/2024
8.0.0-preview.4.23260.4 23 02/13/2024
8.0.0-preview.3.23177.8 21 02/13/2024
8.0.0-preview.2.23153.2 23 02/13/2024
8.0.0-preview.1.23112.2 17 02/13/2024
7.0.20 17 06/06/2024
7.0.19 18 05/22/2024
7.0.18 19 04/10/2024
7.0.17 22 03/15/2024
7.0.16 24 02/15/2024
7.0.15 21 02/13/2024
7.0.14 30 02/02/2024
7.0.13 19 02/13/2024
7.0.12 21 01/14/2024
7.0.11 27 02/13/2024
7.0.10 18 01/29/2024
7.0.9 28 02/13/2024
7.0.8 19 02/13/2024
7.0.7 18 01/09/2024
7.0.5 25 02/13/2024
7.0.4 18 02/13/2024
7.0.3 29 03/15/2024
7.0.2 17 02/13/2024
7.0.1 23 02/13/2024
7.0.0 22 11/23/2022
7.0.0-rc.2.22476.2 22 02/13/2024
7.0.0-rc.1.22427.2 20 02/13/2024
7.0.0-preview.7.22376.6 22 02/13/2024
7.0.0-preview.6.22330.3 24 02/13/2024
7.0.0-preview.5.22303.8 22 02/13/2024
7.0.0-preview.4.22251.1 21 02/13/2024
7.0.0-preview.3.22178.4 27 04/27/2022
7.0.0-preview.2.22153.2 18 02/13/2024
7.0.0-preview.1.22109.13 20 02/13/2024
6.0.36 23 11/18/2024
6.0.35 22 10/10/2024
6.0.33 18 08/13/2024
6.0.32 17 07/11/2024
6.0.31 16 05/30/2024
6.0.30 18 05/22/2024
6.0.29 19 04/10/2024
6.0.28 21 03/15/2024
6.0.27 23 02/15/2024
6.0.26 17 02/13/2024
6.0.25 23 02/01/2024
6.0.24 23 01/29/2024
6.0.23 23 02/13/2024
6.0.22 25 02/13/2024
6.0.21 22 01/31/2024
6.0.20 32 01/23/2024
6.0.19 24 02/13/2024
6.0.18 19 02/13/2024
6.0.16 24 02/13/2024
6.0.15 31 02/13/2024
6.0.14 21 02/13/2024
6.0.13 26 02/11/2024
6.0.12 21 01/22/2024
6.0.11 27 11/16/2022
6.0.10 28 01/10/2024
6.0.9 19 02/13/2024
6.0.8 32 08/10/2022
6.0.7 19 02/13/2024
6.0.6 16 02/13/2024
6.0.5 25 01/27/2024
6.0.4 27 04/29/2022
6.0.3 187 03/09/2022
6.0.2 17 03/03/2023
6.0.1 73 12/15/2021
6.0.0 32 11/19/2021
6.0.0-rc.2.21480.10 31 02/13/2024
6.0.0-rc.1.21452.15 18 02/13/2024
6.0.0-preview.7.21378.6 23 04/01/2022
6.0.0-preview.6.21355.2 25 02/13/2024
6.0.0-preview.5.21301.17 19 01/22/2024
6.0.0-preview.4.21253.5 24 02/07/2024
6.0.0-preview.3.21201.13 17 02/13/2024
6.0.0-preview.2.21154.6 23 01/24/2024
6.0.0-preview.1.21103.6 21 02/13/2024
5.0.17 20 02/02/2024
5.0.16 28 02/08/2024
5.0.15 18 02/13/2024
5.0.14 26 01/30/2024
5.0.13 24 02/08/2024
5.0.12 24 12/09/2021
5.0.11 20 02/13/2024
5.0.10 181 09/15/2021
5.0.9 46 09/02/2021
5.0.8 22 07/13/2021
5.0.7 19 06/08/2021
5.0.6 20 05/11/2021
5.0.5 84 04/06/2021
5.0.4 42 03/09/2021
5.0.3 21 02/09/2021
5.0.2 50 01/13/2021
5.0.1 51 12/08/2020
5.0.0 53 11/10/2020
5.0.0-rc.2.20475.17 23 02/02/2024
5.0.0-rc.1.20451.17 24 02/13/2024
5.0.0-preview.8.20414.8 22 02/04/2024
5.0.0-preview.7.20365.19 21 02/13/2024
5.0.0-preview.6.20312.15 21 02/13/2024
5.0.0-preview.5.20279.2 19 02/13/2024
5.0.0-preview.4.20257.10 20 03/15/2024
5.0.0-preview.3.20215.14 28 02/13/2024
5.0.0-preview.2.20167.3 20 02/13/2024
5.0.0-preview.1.20124.5 31 02/13/2024
3.1.32 21 01/15/2024
3.1.31 23 02/05/2024
3.1.30 23 02/13/2024
3.1.29 21 02/13/2024
3.1.28 19 01/09/2024
3.1.27 20 02/13/2024
3.1.26 30 02/13/2024
3.1.25 25 02/13/2024
3.1.24 19 01/14/2024
3.1.23 22 01/20/2024
3.1.22 28 01/06/2024
3.1.21 22 02/13/2024
3.1.20 22 02/13/2024
3.1.19 21 02/13/2024
3.1.18 23 01/31/2024
3.1.17 22 02/13/2024
3.1.16 22 02/13/2024
3.1.15 25 02/13/2024
3.1.14 22 02/13/2024
3.1.13 70 03/30/2021
3.1.12 19 02/13/2024
3.1.11 24 01/21/2024
3.1.10 27 02/13/2024
3.1.9 25 11/09/2020
3.1.8 19 02/13/2024
3.1.7 21 02/13/2024
3.1.6 18 02/13/2024
3.1.5 18 01/27/2024
3.1.4 21 02/13/2024
3.1.3 20 02/13/2024
3.1.2 23 02/13/2024
3.1.1 20 01/09/2024
3.1.0 22 01/12/2021
3.1.0-preview3.19555.2 24 02/06/2024
3.1.0-preview2.19528.8 22 02/13/2024
3.1.0-preview1.19508.20 25 02/13/2024
3.0.3 16 01/26/2024
3.0.2 24 02/13/2024
3.0.0 30 11/30/2020
3.0.0-rc1.19457.4 20 02/13/2024
3.0.0-preview9.19424.4 21 02/13/2024
3.0.0-preview8.19405.7 22 02/13/2024
3.0.0-preview7.19365.7 23 02/13/2024
3.0.0-preview6.19307.2 25 02/13/2024
3.0.0-preview5-19227-01 20 02/13/2024
3.0.0-preview4-19216-03 20 02/13/2024
3.0.0-preview3-19153-02 24 02/13/2024
3.0.0-preview-19075-0444 28 02/13/2024
3.0.0-preview-18579-0056 21 02/13/2024
2.3.0 12 01/22/2025
2.2.0 30 06/23/2020
2.2.0-preview3-35497 17 02/13/2024
2.2.0-preview2-35157 20 02/13/2024
2.2.0-preview1-35029 26 01/24/2024
2.1.6 25 10/08/2021
2.1.3 24 02/13/2024
2.1.2 21 01/25/2024
2.1.1 19 02/13/2024
2.1.0 24 02/17/2021
2.1.0-rc1-final 18 02/13/2024
2.1.0-preview2-final 19 02/13/2024
2.1.0-preview1-final 29 01/16/2024
2.0.4 20 02/13/2024
2.0.3 19 02/13/2024
2.0.2 18 02/13/2024
2.0.1 18 02/13/2024
2.0.0 20 02/13/2024
2.0.0-preview2-final 20 02/13/2024
2.0.0-preview1-final 21 02/13/2024
1.1.6 20 02/13/2024
1.1.5 40 03/15/2024
1.1.4 17 02/13/2024
1.1.3 23 02/13/2024
1.1.2 18 02/13/2024
1.1.1 45 02/13/2024
1.1.0 22 02/13/2024
1.1.0-preview1-final 24 02/09/2024
1.0.6 20 02/13/2024
1.0.5 18 02/13/2024
1.0.4 18 02/13/2024
1.0.3 25 02/13/2024
1.0.2 21 02/13/2024
1.0.1 20 02/13/2024
1.0.0 33 02/07/2024
1.0.0-rc2-final 21 01/20/2024