Microsoft.AspNetCore.Identity.EntityFrameworkCore 11.0.0-rc.1.26425.128

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
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
19
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/67e04394e98d5bfa6a5684d471a72fcbe30fd587
20
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/8ca3954ca335343ce6dd1d14d8d1c6c3369710b7
21
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/b908e913e3befcfe241f3294509e6d9570acc07b
20
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/fbe05294ac5c88be848b4d57d60cb2657874da9b
20
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/06b2bc111203f9b9ff0914a7715675a9a66bdac9
19
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/32e8c8cae5b1a4dd752d0a42a6f8a2813f75f173
20
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/417d650029c720dbd2138bcafbb78e2e4ff31bff
24
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/54e8b61777d42d2b10744d1987438ee5b8c0b24d
19
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/5a007deadbb2636caff4656333cafc818b6b2ef6
19
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/64ea4108e7dcf1ca575f8dd2028363b0b1ef6ebc
19
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/68bb6fb08f8f85bb3cf08953a0d2f4a254eaccff
20
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/898c164a1f537a8210a26eaf388bdc92531f6b09
19
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/cec88a329584349fda070f4c7346b10538210ace
21
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/d504a7b7dab277712646747e9f5cce0d9507245e
19
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
19
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/f0f9de5692adf1c0576de062f93c6ab7b176433f
21
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/fb4b5a21ebd67b31fff4ddf5c039181da504c932
19
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
19
U1.DataAccess.EF
Data manipulation package (with Entity Framework).
40

.NET 11.0

Version Downloads Last updated
11.0.0-rc.1.26425.128 5 12.09.2026
11.0.0-preview.7.26381.103 3 22.08.2026
11.0.0-preview.6.26359.118 4 21.07.2026
11.0.0-preview.5.26302.115 9 11.06.2026
11.0.0-preview.4.26230.115 7 20.05.2026
11.0.0-preview.3.26207.106 8 27.04.2026
11.0.0-preview.2.26159.112 7 15.03.2026
11.0.0-preview.1.26104.118 8 12.02.2026
10.0.12 4 12.09.2026
10.0.11 4 22.08.2026
10.0.10 7 21.07.2026
10.0.9 8 14.06.2026
10.0.8 8 20.05.2026
10.0.7 10 27.04.2026
10.0.6 9 27.04.2026
10.0.5 9 14.03.2026
10.0.4 9 14.03.2026
10.0.3 7 12.02.2026
10.0.2 9 22.01.2026
10.0.1 12 18.12.2025
10.0.0 13 19.12.2025
10.0.0-rc.2.25502.107 9 15.11.2025
10.0.0-rc.1.25451.107 8 11.10.2025
10.0.0-preview.7.25380.108 9 22.08.2025
10.0.0-preview.6.25358.103 9 08.08.2025
10.0.0-preview.5.25277.114 11 08.06.2025
10.0.0-preview.4.25258.110 14 23.05.2025
10.0.0-preview.3.25172.1 14 26.04.2025
10.0.0-preview.2.25164.1 14 24.03.2025
10.0.0-preview.1.25120.3 14 13.03.2025
9.0.20 2 12.09.2026
9.0.19 3 22.08.2026
9.0.18 5 21.07.2026
9.0.17 8 14.06.2026
9.0.16 8 20.05.2026
9.0.15 11 27.04.2026
9.0.14 6 14.03.2026
9.0.13 7 12.02.2026
9.0.12 9 22.01.2026
9.0.11 13 20.11.2025
9.0.10 7 22.01.2026
9.0.9 11 11.10.2025
9.0.8 16 21.08.2025
9.0.7 12 06.08.2025
9.0.6 16 25.06.2025
9.0.5 15 24.05.2025
9.0.4 15 26.04.2025
9.0.3 15 13.03.2025
9.0.2 14 24.03.2025
9.0.1 16 28.01.2025
9.0.0 18 15.01.2025
9.0.0-rc.2.24474.3 14 24.01.2025
9.0.0-rc.1.24452.1 15 24.01.2025
9.0.0-preview.7.24406.2 14 24.01.2025
9.0.0-preview.6.24328.4 14 30.01.2025
9.0.0-preview.5.24306.11 14 29.01.2025
9.0.0-preview.4.24267.6 16 24.01.2025
9.0.0-preview.3.24172.13 14 30.01.2025
9.0.0-preview.2.24128.4 17 24.01.2025
9.0.0-preview.1.24081.5 14 29.01.2025
8.0.31 3 12.09.2026
8.0.30 3 22.08.2026
8.0.29 5 21.07.2026
8.0.28 9 11.06.2026
8.0.27 9 20.05.2026
8.0.26 8 27.04.2026
8.0.25 8 14.03.2026
8.0.24 8 12.02.2026
8.0.23 9 22.01.2026
8.0.22 7 19.12.2025
8.0.21 10 18.12.2025
8.0.20 9 11.10.2025
8.0.19 11 21.08.2025
8.0.18 11 07.08.2025
8.0.17 15 25.06.2025
8.0.16 17 23.05.2025
8.0.15 18 26.04.2025
8.0.14 14 13.03.2025
8.0.13 15 24.03.2025
8.0.12 16 27.01.2025
8.0.11 16 23.01.2025
8.0.10 17 24.01.2025
8.0.8 17 29.01.2025
8.0.7 17 17.07.2024
8.0.6 16 29.01.2025
8.0.5 17 23.01.2025
8.0.4 16 29.01.2025
8.0.3 20 20.12.2024
8.0.2 17 29.01.2025
8.0.1 19 23.01.2025
8.0.0 17 23.01.2025
8.0.0-rc.2.23480.2 17 23.01.2025
8.0.0-rc.1.23421.29 14 23.01.2025
8.0.0-preview.7.23375.9 12 24.01.2025
8.0.0-preview.6.23329.11 14 29.01.2025
8.0.0-preview.5.23302.2 14 29.01.2025
8.0.0-preview.4.23260.4 14 29.01.2025
8.0.0-preview.3.23177.8 13 29.01.2025
8.0.0-preview.2.23153.2 14 29.01.2025
8.0.0-preview.1.23112.2 13 24.01.2025
7.0.20 13 29.01.2025
7.0.19 17 29.01.2025
7.0.18 18 29.01.2025
7.0.17 14 29.01.2025
7.0.16 11 27.03.2025
7.0.15 16 29.01.2025
7.0.14 16 30.01.2025
7.0.13 15 30.01.2025
7.0.12 16 29.01.2025
7.0.11 15 24.01.2025
7.0.10 13 29.01.2025
7.0.9 16 29.01.2025
7.0.8 17 24.01.2025
7.0.7 18 29.01.2025
7.0.5 15 28.01.2025
7.0.4 16 29.01.2025
7.0.3 16 29.01.2025
7.0.2 14 27.03.2025
7.0.1 17 24.01.2025
7.0.0 16 23.01.2025
7.0.0-rc.2.22476.2 14 23.01.2025
7.0.0-rc.1.22427.2 16 30.01.2025
7.0.0-preview.7.22376.6 14 29.01.2025
7.0.0-preview.6.22330.3 13 29.01.2025
7.0.0-preview.5.22303.8 15 29.01.2025
7.0.0-preview.4.22251.1 15 29.01.2025
7.0.0-preview.3.22178.4 15 29.01.2025
7.0.0-preview.2.22153.2 16 24.01.2025
7.0.0-preview.1.22109.13 14 30.01.2025
6.0.36 13 23.01.2025
6.0.35 18 23.01.2025
6.0.33 17 23.01.2025
6.0.32 16 29.01.2025
6.0.31 17 29.01.2025
6.0.30 20 29.01.2025
6.0.29 16 28.01.2025
6.0.28 18 23.01.2025
6.0.27 15 29.01.2025
6.0.26 12 23.01.2025
6.0.25 16 29.01.2025
6.0.24 14 24.01.2025
6.0.23 15 24.01.2025
6.0.22 15 29.01.2025
6.0.21 17 29.01.2025
6.0.20 18 29.01.2025
6.0.19 17 29.01.2025
6.0.18 15 23.01.2025
6.0.16 15 30.01.2025
6.0.15 16 30.01.2025
6.0.14 15 23.01.2025
6.0.13 16 23.01.2025
6.0.12 11 27.03.2025
6.0.11 15 30.01.2025
6.0.10 16 29.01.2025
6.0.9 18 29.01.2025
6.0.8 18 29.01.2025
6.0.7 15 29.01.2025
6.0.6 17 29.01.2025
6.0.5 18 09.08.2024
6.0.4 16 29.01.2025
6.0.3 17 23.01.2025
6.0.2 15 17.01.2025
6.0.1 17 23.01.2025
6.0.0 17 29.01.2025
6.0.0-rc.2.21480.10 17 24.01.2025
6.0.0-rc.1.21452.15 16 23.01.2025
6.0.0-preview.7.21378.6 13 17.01.2025
6.0.0-preview.6.21355.2 15 28.01.2025
6.0.0-preview.5.21301.17 10 28.01.2025
6.0.0-preview.4.21253.5 13 23.01.2025
6.0.0-preview.3.21201.13 15 29.01.2025
6.0.0-preview.2.21154.6 15 24.01.2025
6.0.0-preview.1.21103.6 14 24.01.2025
5.0.17 14 29.01.2025
5.0.16 16 29.01.2025
5.0.15 15 29.01.2025
5.0.14 16 29.01.2025
5.0.13 17 29.01.2025
5.0.12 15 28.01.2025
5.0.11 16 29.01.2025
5.0.10 16 29.01.2025
5.0.9 18 29.01.2025
5.0.8 16 29.01.2025
5.0.7 16 28.01.2025
5.0.6 18 29.01.2025
5.0.5 16 29.01.2025
5.0.4 19 08.10.2024
5.0.3 15 30.01.2025
5.0.2 16 29.01.2025
5.0.1 16 29.01.2025
5.0.0 17 23.01.2025
5.0.0-rc.2.20475.17 16 29.01.2025
5.0.0-rc.1.20451.17 15 29.01.2025
5.0.0-preview.8.20414.8 15 29.01.2025
5.0.0-preview.7.20365.19 18 23.01.2025
5.0.0-preview.6.20312.15 17 23.01.2025
5.0.0-preview.5.20279.2 14 29.01.2025
5.0.0-preview.4.20257.10 13 28.01.2025
5.0.0-preview.3.20215.14 13 30.01.2025
5.0.0-preview.2.20167.3 13 29.01.2025
5.0.0-preview.1.20124.5 14 24.01.2025
3.1.32 16 29.01.2025
3.1.31 17 23.01.2025
3.1.30 16 29.01.2025
3.1.29 16 30.01.2025
3.1.28 16 29.01.2025
3.1.27 14 29.01.2025
3.1.26 17 29.01.2025
3.1.25 17 23.01.2025
3.1.24 16 29.01.2025
3.1.23 17 29.01.2025
3.1.22 19 28.01.2025
3.1.21 18 23.01.2025
3.1.20 16 23.01.2025
3.1.19 16 29.01.2025
3.1.18 17 23.01.2025
3.1.17 16 23.01.2025
3.1.16 17 29.01.2025
3.1.15 15 30.01.2025
3.1.14 16 29.01.2025
3.1.13 16 30.01.2025
3.1.12 17 29.01.2025
3.1.11 16 23.01.2025
3.1.10 17 28.01.2025
3.1.9 17 23.01.2025
3.1.8 16 29.01.2025
3.1.7 15 29.01.2025
3.1.6 16 30.01.2025
3.1.5 17 29.01.2025
3.1.4 18 23.01.2025
3.1.3 16 29.01.2025
3.1.2 17 29.01.2025
3.1.1 15 23.01.2025
3.1.0 18 28.01.2025
3.1.0-preview3.19555.2 13 27.01.2025
3.1.0-preview2.19528.8 14 29.01.2025
3.1.0-preview1.19508.20 16 23.01.2025
3.0.3 17 23.01.2025
3.0.2 16 24.01.2025
3.0.0 16 29.01.2025
3.0.0-rc1.19457.4 15 30.01.2025
3.0.0-preview9.19424.4 15 28.01.2025
3.0.0-preview8.19405.7 13 29.01.2025
3.0.0-preview7.19365.7 13 29.01.2025
3.0.0-preview6.19307.2 18 29.01.2025
3.0.0-preview5-19227-01 16 23.01.2025
3.0.0-preview4-19216-03 13 30.01.2025
3.0.0-preview3-19153-02 17 29.01.2025
3.0.0-preview-19075-0444 14 29.01.2025
3.0.0-preview-18579-0056 14 29.01.2025
2.3.13 3 12.09.2026
2.3.12 4 22.08.2026
2.3.11 9 13.06.2026
2.3.10 8 20.05.2026
2.3.9 7 22.01.2026
2.3.8 8 22.01.2026
2.3.0 20 28.01.2025
2.2.0 16 28.01.2025
2.2.0-preview3-35497 13 29.01.2025
2.2.0-preview2-35157 16 29.01.2025
2.2.0-preview1-35029 13 30.01.2025
2.1.6 17 23.01.2025
2.1.3 17 23.01.2025
2.1.2 14 29.01.2025
2.1.1 16 23.01.2025
2.1.0 16 29.01.2025
2.1.0-rc1-final 14 29.01.2025
2.1.0-preview2-final 11 17.01.2025
2.1.0-preview1-final 14 28.01.2025
2.0.4 16 24.01.2025
2.0.3 15 29.01.2025
2.0.2 17 23.01.2025
2.0.1 15 30.01.2025
2.0.0 15 29.01.2025
2.0.0-preview2-final 14 29.01.2025
2.0.0-preview1-final 15 23.01.2025
1.1.6 16 31.01.2025
1.1.5 15 28.01.2025
1.1.4 17 23.01.2025
1.1.3 16 24.01.2025
1.1.2 18 24.01.2025
1.1.1 15 30.01.2025
1.1.0 13 29.01.2025
1.1.0-preview1-final 19 30.01.2025
1.0.6 16 30.01.2025
1.0.5 15 29.01.2025
1.0.4 17 30.01.2025
1.0.3 16 24.01.2025
1.0.2 19 30.01.2025
1.0.1 15 29.01.2025
1.0.0 14 29.01.2025
1.0.0-rc2-final 17 24.01.2025