Microsoft.AspNetCore.Identity.EntityFrameworkCore 10.0.0-preview.1.25120.3

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/331b52b370cd4e7fe2919d4d4cda27412e2ab1cc
10
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
12
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
11
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
10
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/02c6de4ba6022025fcda7581415f310f8c73cdc3
10
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
11
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
11
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
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/54e8b61777d42d2b10744d1987438ee5b8c0b24d
10
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
11
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
10
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
10
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
10
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
12
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
11
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
10
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
12
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
11
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/febee99db845fd8766a13bdb391a07c3ee90b4ba
10
U1.DataAccess.EF
Data manipulation package (with Entity Framework).
31

.NET 10.0

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