Microsoft.AspNetCore.Identity.EntityFrameworkCore
10.0.0-preview.1.25120.3
Prefix Reserved
dotnet add package Microsoft.AspNetCore.Identity.EntityFrameworkCore --version 10.0.0-preview.1.25120.3
NuGet\Install-Package Microsoft.AspNetCore.Identity.EntityFrameworkCore -Version 10.0.0-preview.1.25120.3
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="10.0.0-preview.1.25120.3" />
paket add Microsoft.AspNetCore.Identity.EntityFrameworkCore --version 10.0.0-preview.1.25120.3
#r "nuget: Microsoft.AspNetCore.Identity.EntityFrameworkCore, 10.0.0-preview.1.25120.3"
// Install Microsoft.AspNetCore.Identity.EntityFrameworkCore as a Cake Addin #addin nuget:?package=Microsoft.AspNetCore.Identity.EntityFrameworkCore&version=10.0.0-preview.1.25120.3&prerelease // Install Microsoft.AspNetCore.Identity.EntityFrameworkCore as a Cake Tool #tool nuget:?package=Microsoft.AspNetCore.Identity.EntityFrameworkCore&version=10.0.0-preview.1.25120.3&prerelease
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.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net10.0 is compatible. |
-
net10.0
- Microsoft.EntityFrameworkCore.Relational (>= 10.0.0-preview.1.25081.1)
- Microsoft.Extensions.Identity.Stores (>= 10.0.0-preview.1.25120.3)
NuGet packages (983)
Showing the top 5 NuGet packages that depend on Microsoft.AspNetCore.Identity.EntityFrameworkCore:
Package | Downloads |
---|---|
Microsoft.AspNetCore.App
Provides a default set of APIs for building an ASP.NET Core application. This package requires the ASP.NET Core runtime. This runtime is installed by the .NET Core SDK, or can be acquired separately using installers available at https://aka.ms/dotnet-download. |
|
Microsoft.AspNetCore.All
Provides a default set of APIs for building an ASP.NET Core application, and also includes API for third-party integrations with ASP.NET Core. This package requires the ASP.NET Core runtime. This runtime is installed by the .NET Core SDK, or can be acquired separately using installers available at https://aka.ms/dotnet-download. |
|
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 |
|
Microting.eFormApi.BasePn
Package Description |
|
Finbuckle.MultiTenant.EntityFrameworkCore
Entity Framework Core support for Finbuckle.MultiTenant. |
GitHub repositories (307)
Showing the top 5 popular GitHub repositories that depend on Microsoft.AspNetCore.Identity.EntityFrameworkCore:
Repository | Stars |
---|---|
dotnet/maui
.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
|
|
jasontaylordev/CleanArchitecture
Clean Architecture Solution Template for ASP.NET Core
|
|
dotnet/efcore
EF Core is a modern object-database mapper for .NET. It supports LINQ queries, change tracking, updates, and schema migrations.
|
|
dotnet/AspNetCore.Docs
Documentation for ASP.NET Core
|
|
dotnet-architecture/eShopOnWeb
Sample ASP.NET Core 8.0 reference application, now community supported: https://github.com/NimblePros/eShopOnWeb
|
Version | Downloads | Last updated | |
---|---|---|---|
10.0.0-preview.1.25120.3 | 173 | 2/25/2025 | |
9.0.2 | 83,616 | 2/11/2025 | |
9.0.1 | 221,423 | 1/14/2025 | |
9.0.0 | 704,963 | 11/12/2024 | |
9.0.0-rc.2.24474.3 | 22,995 | 10/8/2024 | |
9.0.0-rc.1.24452.1 | 7,816 | 9/10/2024 | |
9.0.0-preview.7.24406.2 | 25,076 | 8/13/2024 | |
9.0.0-preview.6.24328.4 | 41,199 | 7/9/2024 | |
9.0.0-preview.5.24306.11 | 2,816 | 6/11/2024 | |
9.0.0-preview.4.24267.6 | 3,259 | 5/21/2024 | |
9.0.0-preview.3.24172.13 | 71,487 | 4/11/2024 | |
9.0.0-preview.2.24128.4 | 3,625 | 3/12/2024 | |
9.0.0-preview.1.24081.5 | 25,236 | 2/13/2024 | |
8.0.13 | 46,595 | 2/11/2025 | |
8.0.12 | 160,944 | 1/14/2025 | |
8.0.11 | 883,495 | 11/12/2024 | |
8.0.10 | 1,491,310 | 10/8/2024 | |
8.0.8 | 2,159,576 | 8/13/2024 | |
8.0.7 | 1,505,276 | 7/9/2024 | |
8.0.6 | 1,863,190 | 5/28/2024 | |
8.0.5 | 835,266 | 5/14/2024 | |
8.0.4 | 1,807,792 | 4/9/2024 | |
8.0.3 | 1,408,914 | 3/12/2024 | |
8.0.2 | 1,768,275 | 2/13/2024 | |
8.0.1 | 1,560,838 | 1/9/2024 | |
8.0.0 | 2,904,353 | 11/14/2023 | |
8.0.0-rc.2.23480.2 | 51,797 | 10/10/2023 | |
8.0.0-rc.1.23421.29 | 24,684 | 9/12/2023 | |
8.0.0-preview.7.23375.9 | 48,079 | 8/8/2023 | |
8.0.0-preview.6.23329.11 | 50,512 | 7/11/2023 | |
8.0.0-preview.5.23302.2 | 9,201 | 6/13/2023 | |
8.0.0-preview.4.23260.4 | 6,888 | 5/16/2023 | |
8.0.0-preview.3.23177.8 | 11,058 | 4/11/2023 | |
8.0.0-preview.2.23153.2 | 93,618 | 3/14/2023 | |
8.0.0-preview.1.23112.2 | 58,647 | 2/21/2023 | |
7.0.20 | 258,211 | 5/28/2024 | |
7.0.19 | 31,701 | 5/14/2024 | |
7.0.18 | 80,631 | 4/9/2024 | |
7.0.17 | 320,824 | 3/12/2024 | |
7.0.16 | 191,086 | 2/13/2024 | |
7.0.15 | 311,179 | 1/9/2024 | |
7.0.14 | 449,434 | 11/14/2023 | |
7.0.13 | 711,019 | 10/24/2023 | |
7.0.12 | 453,515 | 10/10/2023 | |
7.0.11 | 793,350 | 9/12/2023 | |
7.0.10 | 904,694 | 8/8/2023 | |
7.0.9 | 723,153 | 7/11/2023 | |
7.0.8 | 457,474 | 6/22/2023 | |
7.0.7 | 264,345 | 6/13/2023 | |
7.0.5 | 2,414,277 | 4/11/2023 | |
7.0.4 | 899,621 | 3/14/2023 | |
7.0.3 | 1,009,834 | 2/14/2023 | |
7.0.2 | 1,309,801 | 1/10/2023 | |
7.0.1 | 513,739 | 12/13/2022 | |
7.0.0 | 1,374,365 | 11/7/2022 | |
7.0.0-rc.2.22476.2 | 41,022 | 10/11/2022 | |
7.0.0-rc.1.22427.2 | 74,132 | 9/14/2022 | |
7.0.0-preview.7.22376.6 | 9,161 | 8/9/2022 | |
7.0.0-preview.6.22330.3 | 3,988 | 7/12/2022 | |
7.0.0-preview.5.22303.8 | 7,347 | 6/14/2022 | |
7.0.0-preview.4.22251.1 | 6,925 | 5/10/2022 | |
7.0.0-preview.3.22178.4 | 3,974 | 4/13/2022 | |
7.0.0-preview.2.22153.2 | 2,376 | 3/14/2022 | |
7.0.0-preview.1.22109.13 | 2,336 | 2/17/2022 | |
6.0.36 | 51,590 | 11/12/2024 | |
6.0.35 | 47,326 | 10/8/2024 | |
6.0.33 | 474,083 | 8/13/2024 | |
6.0.32 | 72,536 | 7/9/2024 | |
6.0.31 | 88,407 | 5/28/2024 | |
6.0.30 | 62,959 | 5/14/2024 | |
6.0.29 | 198,170 | 4/9/2024 | |
6.0.28 | 230,737 | 3/12/2024 | |
6.0.27 | 181,650 | 2/13/2024 | |
6.0.26 | 368,649 | 1/9/2024 | |
6.0.25 | 437,435 | 11/14/2023 | |
6.0.24 | 234,113 | 10/24/2023 | |
6.0.23 | 192,155 | 10/10/2023 | |
6.0.22 | 388,439 | 9/12/2023 | |
6.0.21 | 474,417 | 8/8/2023 | |
6.0.20 | 403,905 | 7/11/2023 | |
6.0.19 | 273,175 | 6/22/2023 | |
6.0.18 | 250,902 | 6/13/2023 | |
6.0.16 | 1,193,660 | 4/11/2023 | |
6.0.15 | 577,647 | 3/14/2023 | |
6.0.14 | 731,465 | 2/14/2023 | |
6.0.13 | 1,047,532 | 1/10/2023 | |
6.0.12 | 726,854 | 12/13/2022 | |
6.0.11 | 1,322,274 | 11/7/2022 | |
6.0.10 | 1,989,829 | 10/11/2022 | |
6.0.9 | 1,938,802 | 9/13/2022 | |
6.0.8 | 2,479,935 | 8/9/2022 | |
6.0.7 | 2,427,771 | 7/12/2022 | |
6.0.6 | 1,583,304 | 6/14/2022 | |
6.0.5 | 2,718,807 | 5/10/2022 | |
6.0.4 | 1,956,055 | 4/11/2022 | |
6.0.3 | 2,123,087 | 3/8/2022 | |
6.0.2 | 2,535,607 | 2/8/2022 | |
6.0.1 | 2,990,477 | 12/14/2021 | |
6.0.0 | 5,627,733 | 11/8/2021 | |
6.0.0-rc.2.21480.10 | 36,734 | 10/12/2021 | |
6.0.0-rc.1.21452.15 | 34,954 | 9/14/2021 | |
6.0.0-preview.7.21378.6 | 21,597 | 8/10/2021 | |
6.0.0-preview.6.21355.2 | 11,281 | 7/14/2021 | |
6.0.0-preview.5.21301.17 | 13,202 | 6/15/2021 | |
6.0.0-preview.4.21253.5 | 6,824 | 5/24/2021 | |
6.0.0-preview.3.21201.13 | 17,927 | 4/8/2021 | |
6.0.0-preview.2.21154.6 | 5,047 | 3/11/2021 | |
6.0.0-preview.1.21103.6 | 12,085 | 2/12/2021 | |
5.0.17 | 918,158 | 5/10/2022 | |
5.0.16 | 135,886 | 4/11/2022 | |
5.0.15 | 305,983 | 3/8/2022 | |
5.0.14 | 206,171 | 2/8/2022 | |
5.0.13 | 396,164 | 12/14/2021 | |
5.0.12 | 494,585 | 11/7/2021 | |
5.0.11 | 1,136,428 | 10/12/2021 | |
5.0.10 | 1,263,881 | 9/14/2021 | |
5.0.9 | 1,251,594 | 8/10/2021 | |
5.0.8 | 1,158,856 | 7/13/2021 | |
5.0.7 | 1,551,334 | 6/8/2021 | |
5.0.6 | 1,211,610 | 5/11/2021 | |
5.0.5 | 1,450,099 | 4/6/2021 | |
5.0.4 | 1,277,115 | 3/9/2021 | |
5.0.3 | 1,073,956 | 2/9/2021 | |
5.0.2 | 953,965 | 1/12/2021 | |
5.0.1 | 1,026,123 | 12/8/2020 | |
5.0.0 | 1,843,704 | 11/9/2020 | |
5.0.0-rc.2.20475.17 | 23,542 | 10/13/2020 | |
5.0.0-rc.1.20451.17 | 20,711 | 9/14/2020 | |
5.0.0-preview.8.20414.8 | 18,804 | 8/25/2020 | |
5.0.0-preview.7.20365.19 | 11,028 | 7/21/2020 | |
5.0.0-preview.6.20312.15 | 8,768 | 6/25/2020 | |
5.0.0-preview.5.20279.2 | 2,642 | 6/10/2020 | |
5.0.0-preview.4.20257.10 | 3,733 | 5/18/2020 | |
5.0.0-preview.3.20215.14 | 5,365 | 4/23/2020 | |
5.0.0-preview.2.20167.3 | 4,388 | 4/2/2020 | |
5.0.0-preview.1.20124.5 | 6,996 | 3/16/2020 | |
3.1.32 | 217,050 | 12/13/2022 | |
3.1.31 | 30,981 | 11/8/2022 | |
3.1.30 | 35,338 | 10/11/2022 | |
3.1.29 | 34,480 | 9/13/2022 | |
3.1.28 | 52,779 | 8/9/2022 | |
3.1.27 | 51,222 | 7/12/2022 | |
3.1.26 | 39,851 | 6/14/2022 | |
3.1.25 | 85,031 | 5/10/2022 | |
3.1.24 | 71,940 | 4/11/2022 | |
3.1.23 | 143,975 | 3/8/2022 | |
3.1.22 | 358,159 | 12/14/2021 | |
3.1.21 | 344,274 | 11/7/2021 | |
3.1.20 | 220,489 | 10/11/2021 | |
3.1.19 | 138,762 | 9/14/2021 | |
3.1.18 | 307,004 | 8/10/2021 | |
3.1.17 | 179,780 | 7/13/2021 | |
3.1.16 | 216,355 | 6/8/2021 | |
3.1.15 | 289,202 | 5/11/2021 | |
3.1.14 | 272,295 | 4/6/2021 | |
3.1.13 | 423,659 | 3/9/2021 | |
3.1.12 | 520,023 | 2/9/2021 | |
3.1.11 | 587,826 | 1/12/2021 | |
3.1.10 | 1,192,578 | 11/9/2020 | |
3.1.9 | 1,595,244 | 10/13/2020 | |
3.1.8 | 2,972,202 | 9/8/2020 | |
3.1.7 | 1,422,462 | 8/11/2020 | |
3.1.6 | 1,475,374 | 7/14/2020 | |
3.1.5 | 1,699,632 | 6/9/2020 | |
3.1.4 | 1,196,907 | 5/12/2020 | |
3.1.3 | 2,419,916 | 3/24/2020 | |
3.1.2 | 1,952,264 | 2/18/2020 | |
3.1.1 | 1,908,963 | 1/14/2020 | |
3.1.0 | 2,323,434 | 12/3/2019 | |
3.1.0-preview3.19555.2 | 12,459 | 11/13/2019 | |
3.1.0-preview2.19528.8 | 6,826 | 11/1/2019 | |
3.1.0-preview1.19508.20 | 9,713 | 10/15/2019 | |
3.0.3 | 56,879 | 2/18/2020 | |
3.0.2 | 15,288 | 1/14/2020 | |
3.0.0 | 2,095,699 | 9/23/2019 | |
3.0.0-rc1.19457.4 | 22,140 | 9/16/2019 | |
3.0.0-preview9.19424.4 | 21,252 | 9/4/2019 | |
3.0.0-preview8.19405.7 | 14,308 | 8/13/2019 | |
3.0.0-preview7.19365.7 | 32,700 | 7/23/2019 | |
3.0.0-preview6.19307.2 | 16,532 | 6/12/2019 | |
3.0.0-preview5-19227-01 | 11,702 | 5/6/2019 | |
3.0.0-preview4-19216-03 | 3,610 | 4/18/2019 | |
3.0.0-preview3-19153-02 | 6,676 | 3/6/2019 | |
3.0.0-preview-19075-0444 | 2,589 | 1/29/2019 | |
3.0.0-preview-18579-0056 | 3,105 | 12/3/2018 | |
2.3.0 | 738 | 1/14/2025 | |
2.2.0 | 16,622,035 | 12/3/2018 | |
2.2.0-preview3-35497 | 71,507 | 10/17/2018 | |
2.2.0-preview2-35157 | 37,998 | 9/12/2018 | |
2.2.0-preview1-35029 | 5,131 | 8/22/2018 | |
2.1.6 | 6,812,473 | 11/13/2018 | |
2.1.3 | 7,944,654 | 8/21/2018 | |
2.1.2 | 3,396,792 | 7/10/2018 | |
2.1.1 | 10,028,507 | 6/18/2018 | |
2.1.0 | 3,728,025 | 5/29/2018 | |
2.1.0-rc1-final | 26,094 | 5/6/2018 | |
2.1.0-preview2-final | 26,088 | 4/10/2018 | |
2.1.0-preview1-final | 42,295 | 2/26/2018 | |
2.0.4 | 2,386,763 | 7/10/2018 | |
2.0.3 | 2,391,683 | 5/7/2018 | |
2.0.2 | 3,616,431 | 3/13/2018 | |
2.0.1 | 5,508,023 | 11/14/2017 | |
2.0.0 | 6,780,466 | 8/11/2017 | |
2.0.0-preview2-final | 56,141 | 6/27/2017 | |
2.0.0-preview1-final | 27,982 | 5/10/2017 | |
1.1.6 | 19,561 | 7/10/2018 | |
1.1.5 | 23,679 | 12/12/2017 | |
1.1.4 | 7,691 | 11/14/2017 | |
1.1.3 | 25,783 | 9/20/2017 | |
1.1.2 | 317,787 | 5/9/2017 | |
1.1.1 | 196,340 | 3/6/2017 | |
1.1.0 | 258,551 | 11/16/2016 | |
1.1.0-preview1-final | 9,556 | 10/24/2016 | |
1.0.6 | 4,073 | 7/10/2018 | |
1.0.5 | 4,867 | 11/14/2017 | |
1.0.4 | 7,440 | 9/20/2017 | |
1.0.3 | 6,766 | 5/9/2017 | |
1.0.2 | 218,279 | 3/6/2017 | |
1.0.1 | 27,678 | 12/12/2016 | |
1.0.0 | 334,193 | 6/27/2016 | |
1.0.0-rc2-final | 36,589 | 5/16/2016 |