Microsoft.AspNetCore.Identity.EntityFrameworkCore 11.0.0-preview.2.26159.112

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
13
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
15
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
14
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/c04846dc66cc97f71d83a83a15437828435f5d44
13
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
14
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/3b519aa7d1a1b66e1d329d694f814e1d8228dc8c
14
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
16
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
13
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/55738ff96b832439076e25584cfe0eb3bace9b01
13
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/57512b49997283599b00a6b67d0ccebaec171daf
14
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
13
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
13
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
13
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/be51b1aa73343e45a1d00afd436abad794f471fb
13
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
15
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
14
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/e882394a7bb38930da748291fe2c2ceaa6a80588
13
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
15
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
13
U1.DataAccess.EF
Data manipulation package (with Entity Framework).
34

.NET 11.0

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