Microsoft.AspNetCore.Identity.EntityFrameworkCore
10.0.12
Prefix Reserved
See the version list below for details.
dotnet add package Microsoft.AspNetCore.Identity.EntityFrameworkCore --version 10.0.12
NuGet\Install-Package Microsoft.AspNetCore.Identity.EntityFrameworkCore -Version 10.0.12
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="10.0.12" />
<PackageVersion Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="10.0.12" />
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" />
paket add Microsoft.AspNetCore.Identity.EntityFrameworkCore --version 10.0.12
#r "nuget: Microsoft.AspNetCore.Identity.EntityFrameworkCore, 10.0.12"
#:package Microsoft.AspNetCore.Identity.EntityFrameworkCore@10.0.12
#addin nuget:?package=Microsoft.AspNetCore.Identity.EntityFrameworkCore&version=10.0.12
#tool nuget:?package=Microsoft.AspNetCore.Identity.EntityFrameworkCore&version=10.0.12
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-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Microsoft.EntityFrameworkCore.Relational (>= 10.0.12)
- Microsoft.Extensions.Identity.Stores (>= 10.0.12)
NuGet packages (1.3K)
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 |
|
|
OO.Data
Data Entity base types and declarations for EasyDataCore infrastructure |
GitHub repositories (341)
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
|
|
|
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.
|
|
|
dotnet/eShop
A reference .NET application implementing an eCommerce site
|
|
|
dotnet-architecture/eShopOnWeb
Sample ASP.NET Core 8.0 reference application, now community supported: https://github.com/NimblePros/eShopOnWeb
|