Microsoft.AspNetCore.Identity.EntityFrameworkCore
10.0.0-preview.3.25172.1
Prefix Reserved
dotnet add package Microsoft.AspNetCore.Identity.EntityFrameworkCore --version 10.0.0-preview.3.25172.1
NuGet\Install-Package Microsoft.AspNetCore.Identity.EntityFrameworkCore -Version 10.0.0-preview.3.25172.1
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="10.0.0-preview.3.25172.1" />
<PackageVersion Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="10.0.0-preview.3.25172.1" />
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" />
paket add Microsoft.AspNetCore.Identity.EntityFrameworkCore --version 10.0.0-preview.3.25172.1
#r "nuget: Microsoft.AspNetCore.Identity.EntityFrameworkCore, 10.0.0-preview.3.25172.1"
#addin nuget:?package=Microsoft.AspNetCore.Identity.EntityFrameworkCore&version=10.0.0-preview.3.25172.1&prerelease
#tool nuget:?package=Microsoft.AspNetCore.Identity.EntityFrameworkCore&version=10.0.0-preview.3.25172.1&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.3.25171.6)
- Microsoft.Extensions.Identity.Stores (>= 10.0.0-preview.3.25172.1)
NuGet packages (1.0K)
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 (316)
Showing the top 20 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
|
|
dodyg/practical-aspnetcore
Practical samples of ASP.NET Core 10 Preview 3, 9, 8.0, 7.0, 6.0, 5.0, 3.1, 2.2, and 2.1,projects you can use. Readme contains explanations on all projects.
|
|
dotnet/eShop
A reference .NET application implementing an eCommerce site
|
|
Kareadita/Kavita
Kavita is a fast, feature rich, cross platform reading server. Built with the goal of being a full solution for all your reading needs. Setup your own server and share your reading collection with your friends and family.
|
|
btcpayserver/btcpayserver
Accept Bitcoin payments. Free, open-source & self-hosted, Bitcoin payment processor.
|
|
EduardoPires/EquinoxProject
Web Application ASP.NET 9 using Clean Architecture, DDD, CQRS, Event Sourcing and a lot of good practices
|
|
ant-design-blazor/ant-design-blazor
🌈A rich set of enterprise-class UI components based on Ant Design and Blazor.
|
|
ServiceStack/ServiceStack
Thoughtfully architected, obscenely fast, thoroughly enjoyable web services for all
|
|
jasontaylordev/NorthwindTraders
Northwind Traders is a sample application built using ASP.NET Core and Entity Framework Core.
|
|
immense/Remotely
A remote control and remote scripting solution, built with .NET 8, Blazor, and SignalR.
|
|
openiddict/openiddict-core
Flexible and versatile OAuth 2.0/OpenID Connect stack for .NET
|
|
cobbr/Covenant
Covenant is a collaborative .NET C2 framework for red teamers.
|
|
simplcommerce/SimplCommerce
A simple, cross platform, modulith ecommerce system built on .NET
|
|
microsoft/fluentui-blazor
Microsoft Fluent UI Blazor components library. For use with ASP.NET Core Blazor applications
|
|
Ombi-app/Ombi
Want a Movie or TV Show on Plex/Emby/Jellyfin? Use Ombi!
|
|
skoruba/IdentityServer4.Admin
The administration for the IdentityServer4 and Asp.Net Core Identity
|
Version | Downloads | Last updated | |
---|---|---|---|
10.0.0-preview.3.25172.1 | 886 | 4/10/2025 | |
10.0.0-preview.2.25164.1 | 2,083 | 3/18/2025 | |
10.0.0-preview.1.25120.3 | 2,443 | 2/25/2025 | |
9.0.4 | 63,724 | 4/8/2025 | |
9.0.3 | 305,107 | 3/11/2025 | |
9.0.2 | 456,135 | 2/11/2025 | |
9.0.1 | 441,668 | 1/14/2025 | |
9.0.0 | 1,001,488 | 11/12/2024 | |
9.0.0-rc.2.24474.3 | 26,621 | 10/8/2024 | |
9.0.0-rc.1.24452.1 | 8,291 | 9/10/2024 | |
9.0.0-preview.7.24406.2 | 30,316 | 8/13/2024 | |
9.0.0-preview.6.24328.4 | 74,872 | 7/9/2024 | |
9.0.0-preview.5.24306.11 | 2,912 | 6/11/2024 | |
9.0.0-preview.4.24267.6 | 3,389 | 5/21/2024 | |
9.0.0-preview.3.24172.13 | 71,851 | 4/11/2024 | |
9.0.0-preview.2.24128.4 | 3,977 | 3/12/2024 | |
9.0.0-preview.1.24081.5 | 25,960 | 2/13/2024 | |
8.0.15 | 35,030 | 4/8/2025 | |
8.0.14 | 257,479 | 3/11/2025 | |
8.0.13 | 244,294 | 2/11/2025 | |
8.0.12 | 403,826 | 1/14/2025 | |
8.0.11 | 1,413,579 | 11/12/2024 | |
8.0.10 | 1,984,783 | 10/8/2024 | |
8.0.8 | 2,622,022 | 8/13/2024 | |
8.0.7 | 1,771,831 | 7/9/2024 | |
8.0.6 | 2,118,926 | 5/28/2024 | |
8.0.5 | 943,688 | 5/14/2024 | |
8.0.4 | 2,133,727 | 4/9/2024 | |
8.0.3 | 1,577,612 | 3/12/2024 | |
8.0.2 | 1,936,251 | 2/13/2024 | |
8.0.1 | 1,696,006 | 1/9/2024 | |
8.0.0 | 3,265,945 | 11/14/2023 | |
8.0.0-rc.2.23480.2 | 52,494 | 10/10/2023 | |
8.0.0-rc.1.23421.29 | 24,935 | 9/12/2023 | |
8.0.0-preview.7.23375.9 | 51,414 | 8/8/2023 | |
8.0.0-preview.6.23329.11 | 59,506 | 7/11/2023 | |
8.0.0-preview.5.23302.2 | 9,298 | 6/13/2023 | |
8.0.0-preview.4.23260.4 | 7,058 | 5/16/2023 | |
8.0.0-preview.3.23177.8 | 12,311 | 4/11/2023 | |
8.0.0-preview.2.23153.2 | 94,230 | 3/14/2023 | |
8.0.0-preview.1.23112.2 | 59,136 | 2/21/2023 | |
7.0.20 | 336,367 | 5/28/2024 | |
7.0.19 | 36,812 | 5/14/2024 | |
7.0.18 | 88,348 | 4/9/2024 | |
7.0.17 | 328,956 | 3/12/2024 | |
7.0.16 | 198,728 | 2/13/2024 | |
7.0.15 | 337,048 | 1/9/2024 | |
7.0.14 | 471,149 | 11/14/2023 | |
7.0.13 | 744,547 | 10/24/2023 | |
7.0.12 | 469,896 | 10/10/2023 | |
7.0.11 | 819,525 | 9/12/2023 | |
7.0.10 | 926,939 | 8/8/2023 | |
7.0.9 | 754,376 | 7/11/2023 | |
7.0.8 | 468,607 | 6/22/2023 | |
7.0.7 | 270,898 | 6/13/2023 | |
7.0.5 | 2,517,073 | 4/11/2023 | |
7.0.4 | 915,361 | 3/14/2023 | |
7.0.3 | 1,030,694 | 2/14/2023 | |
7.0.2 | 1,363,081 | 1/10/2023 | |
7.0.1 | 524,705 | 12/13/2022 | |
7.0.0 | 1,411,783 | 11/7/2022 | |
7.0.0-rc.2.22476.2 | 41,693 | 10/11/2022 | |
7.0.0-rc.1.22427.2 | 74,228 | 9/14/2022 | |
7.0.0-preview.7.22376.6 | 9,337 | 8/9/2022 | |
7.0.0-preview.6.22330.3 | 4,019 | 7/12/2022 | |
7.0.0-preview.5.22303.8 | 7,517 | 6/14/2022 | |
7.0.0-preview.4.22251.1 | 6,958 | 5/10/2022 | |
7.0.0-preview.3.22178.4 | 4,051 | 4/13/2022 | |
7.0.0-preview.2.22153.2 | 2,408 | 3/14/2022 | |
7.0.0-preview.1.22109.13 | 2,385 | 2/17/2022 | |
6.0.36 | 88,382 | 11/12/2024 | |
6.0.35 | 65,582 | 10/8/2024 | |
6.0.33 | 613,649 | 8/13/2024 | |
6.0.32 | 81,699 | 7/9/2024 | |
6.0.31 | 96,046 | 5/28/2024 | |
6.0.30 | 69,006 | 5/14/2024 | |
6.0.29 | 225,453 | 4/9/2024 | |
6.0.28 | 253,353 | 3/12/2024 | |
6.0.27 | 193,425 | 2/13/2024 | |
6.0.26 | 383,362 | 1/9/2024 | |
6.0.25 | 458,144 | 11/14/2023 | |
6.0.24 | 248,756 | 10/24/2023 | |
6.0.23 | 200,691 | 10/10/2023 | |
6.0.22 | 403,592 | 9/12/2023 | |
6.0.21 | 493,316 | 8/8/2023 | |
6.0.20 | 422,242 | 7/11/2023 | |
6.0.19 | 285,271 | 6/22/2023 | |
6.0.18 | 268,677 | 6/13/2023 | |
6.0.16 | 1,304,816 | 4/11/2023 | |
6.0.15 | 591,808 | 3/14/2023 | |
6.0.14 | 753,785 | 2/14/2023 | |
6.0.13 | 1,077,259 | 1/10/2023 | |
6.0.12 | 748,282 | 12/13/2022 | |
6.0.11 | 1,351,929 | 11/7/2022 | |
6.0.10 | 2,040,601 | 10/11/2022 | |
6.0.9 | 1,988,758 | 9/13/2022 | |
6.0.8 | 2,532,094 | 8/9/2022 | |
6.0.7 | 2,493,551 | 7/12/2022 | |
6.0.6 | 1,611,215 | 6/14/2022 | |
6.0.5 | 2,761,633 | 5/10/2022 | |
6.0.4 | 1,978,577 | 4/11/2022 | |
6.0.3 | 2,161,976 | 3/8/2022 | |
6.0.2 | 2,561,414 | 2/8/2022 | |
6.0.1 | 3,053,591 | 12/14/2021 | |
6.0.0 | 5,894,940 | 11/8/2021 | |
6.0.0-rc.2.21480.10 | 36,936 | 10/12/2021 | |
6.0.0-rc.1.21452.15 | 35,189 | 9/14/2021 | |
6.0.0-preview.7.21378.6 | 21,796 | 8/10/2021 | |
6.0.0-preview.6.21355.2 | 11,336 | 7/14/2021 | |
6.0.0-preview.5.21301.17 | 13,289 | 6/15/2021 | |
6.0.0-preview.4.21253.5 | 6,873 | 5/24/2021 | |
6.0.0-preview.3.21201.13 | 18,309 | 4/8/2021 | |
6.0.0-preview.2.21154.6 | 5,108 | 3/11/2021 | |
6.0.0-preview.1.21103.6 | 12,300 | 2/12/2021 | |
5.0.17 | 945,145 | 5/10/2022 | |
5.0.16 | 138,077 | 4/11/2022 | |
5.0.15 | 310,939 | 3/8/2022 | |
5.0.14 | 209,358 | 2/8/2022 | |
5.0.13 | 401,568 | 12/14/2021 | |
5.0.12 | 506,854 | 11/7/2021 | |
5.0.11 | 1,150,119 | 10/12/2021 | |
5.0.10 | 1,275,949 | 9/14/2021 | |
5.0.9 | 1,263,033 | 8/10/2021 | |
5.0.8 | 1,170,770 | 7/13/2021 | |
5.0.7 | 1,562,027 | 6/8/2021 | |
5.0.6 | 1,221,184 | 5/11/2021 | |
5.0.5 | 1,463,048 | 4/6/2021 | |
5.0.4 | 1,294,788 | 3/9/2021 | |
5.0.3 | 1,080,705 | 2/9/2021 | |
5.0.2 | 959,327 | 1/12/2021 | |
5.0.1 | 1,037,470 | 12/8/2020 | |
5.0.0 | 1,859,189 | 11/9/2020 | |
5.0.0-rc.2.20475.17 | 23,617 | 10/13/2020 | |
5.0.0-rc.1.20451.17 | 20,780 | 9/14/2020 | |
5.0.0-preview.8.20414.8 | 18,912 | 8/25/2020 | |
5.0.0-preview.7.20365.19 | 11,132 | 7/21/2020 | |
5.0.0-preview.6.20312.15 | 8,827 | 6/25/2020 | |
5.0.0-preview.5.20279.2 | 2,698 | 6/10/2020 | |
5.0.0-preview.4.20257.10 | 3,815 | 5/18/2020 | |
5.0.0-preview.3.20215.14 | 5,431 | 4/23/2020 | |
5.0.0-preview.2.20167.3 | 4,466 | 4/2/2020 | |
5.0.0-preview.1.20124.5 | 7,055 | 3/16/2020 | |
3.1.32 | 236,562 | 12/13/2022 | |
3.1.31 | 32,108 | 11/8/2022 | |
3.1.30 | 36,251 | 10/11/2022 | |
3.1.29 | 35,205 | 9/13/2022 | |
3.1.28 | 53,554 | 8/9/2022 | |
3.1.27 | 51,659 | 7/12/2022 | |
3.1.26 | 41,770 | 6/14/2022 | |
3.1.25 | 87,311 | 5/10/2022 | |
3.1.24 | 72,799 | 4/11/2022 | |
3.1.23 | 147,965 | 3/8/2022 | |
3.1.22 | 367,798 | 12/14/2021 | |
3.1.21 | 352,085 | 11/7/2021 | |
3.1.20 | 228,208 | 10/11/2021 | |
3.1.19 | 141,862 | 9/14/2021 | |
3.1.18 | 309,463 | 8/10/2021 | |
3.1.17 | 183,895 | 7/13/2021 | |
3.1.16 | 221,159 | 6/8/2021 | |
3.1.15 | 292,469 | 5/11/2021 | |
3.1.14 | 273,571 | 4/6/2021 | |
3.1.13 | 425,777 | 3/9/2021 | |
3.1.12 | 525,545 | 2/9/2021 | |
3.1.11 | 596,472 | 1/12/2021 | |
3.1.10 | 1,198,309 | 11/9/2020 | |
3.1.9 | 1,603,823 | 10/13/2020 | |
3.1.8 | 2,981,983 | 9/8/2020 | |
3.1.7 | 1,443,927 | 8/11/2020 | |
3.1.6 | 1,487,614 | 7/14/2020 | |
3.1.5 | 1,712,048 | 6/9/2020 | |
3.1.4 | 1,208,239 | 5/12/2020 | |
3.1.3 | 2,439,468 | 3/24/2020 | |
3.1.2 | 1,963,665 | 2/18/2020 | |
3.1.1 | 1,922,099 | 1/14/2020 | |
3.1.0 | 2,344,458 | 12/3/2019 | |
3.1.0-preview3.19555.2 | 12,541 | 11/13/2019 | |
3.1.0-preview2.19528.8 | 6,950 | 11/1/2019 | |
3.1.0-preview1.19508.20 | 9,825 | 10/15/2019 | |
3.0.3 | 58,956 | 2/18/2020 | |
3.0.2 | 15,449 | 1/14/2020 | |
3.0.0 | 2,124,244 | 9/23/2019 | |
3.0.0-rc1.19457.4 | 22,235 | 9/16/2019 | |
3.0.0-preview9.19424.4 | 21,333 | 9/4/2019 | |
3.0.0-preview8.19405.7 | 14,367 | 8/13/2019 | |
3.0.0-preview7.19365.7 | 32,866 | 7/23/2019 | |
3.0.0-preview6.19307.2 | 16,597 | 6/12/2019 | |
3.0.0-preview5-19227-01 | 11,760 | 5/6/2019 | |
3.0.0-preview4-19216-03 | 3,674 | 4/18/2019 | |
3.0.0-preview3-19153-02 | 6,766 | 3/6/2019 | |
3.0.0-preview-19075-0444 | 2,649 | 1/29/2019 | |
3.0.0-preview-18579-0056 | 3,167 | 12/3/2018 | |
2.3.0 | 2,562 | 1/14/2025 | |
2.2.0 | 16,830,932 | 12/3/2018 | |
2.2.0-preview3-35497 | 71,707 | 10/17/2018 | |
2.2.0-preview2-35157 | 38,179 | 9/12/2018 | |
2.2.0-preview1-35029 | 5,221 | 8/22/2018 | |
2.1.6 | 6,849,126 | 11/13/2018 | |
2.1.3 | 7,968,494 | 8/21/2018 | |
2.1.2 | 3,410,703 | 7/10/2018 | |
2.1.1 | 10,322,716 | 6/18/2018 | |
2.1.0 | 3,741,450 | 5/29/2018 | |
2.1.0-rc1-final | 26,252 | 5/6/2018 | |
2.1.0-preview2-final | 26,260 | 4/10/2018 | |
2.1.0-preview1-final | 42,484 | 2/26/2018 | |
2.0.4 | 2,416,634 | 7/10/2018 | |
2.0.3 | 2,403,370 | 5/7/2018 | |
2.0.2 | 3,644,049 | 3/13/2018 | |
2.0.1 | 5,554,555 | 11/14/2017 | |
2.0.0 | 6,821,858 | 8/11/2017 | |
2.0.0-preview2-final | 56,491 | 6/27/2017 | |
2.0.0-preview1-final | 28,191 | 5/10/2017 | |
1.1.6 | 20,467 | 7/10/2018 | |
1.1.5 | 23,925 | 12/12/2017 | |
1.1.4 | 7,816 | 11/14/2017 | |
1.1.3 | 26,048 | 9/20/2017 | |
1.1.2 | 319,183 | 5/9/2017 | |
1.1.1 | 197,725 | 3/6/2017 | |
1.1.0 | 259,019 | 11/16/2016 | |
1.1.0-preview1-final | 9,662 | 10/24/2016 | |
1.0.6 | 4,224 | 7/10/2018 | |
1.0.5 | 4,999 | 11/14/2017 | |
1.0.4 | 7,633 | 9/20/2017 | |
1.0.3 | 6,892 | 5/9/2017 | |
1.0.2 | 219,897 | 3/6/2017 | |
1.0.1 | 27,836 | 12/12/2016 | |
1.0.0 | 349,425 | 6/27/2016 | |
1.0.0-rc2-final | 36,701 | 5/16/2016 |