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

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/509f6badec2f3162f0e50330cd9107e5624b379b
56
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/aee5e4080331553ea9dfb7fb388b6d72f715bf6a
55
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/cf2c5c9c6dca430b97aa96429b84d0da07eb77f1
55
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/c5f85986e62dabfc0b7f2f2a45dc7c22e8ac815f
54
Microsoft.AspNetCore.Identity.Service.EntityFrameworkCore
ASP.NET Core Identity Service implementation based on ASP.NET Core Identity.
54
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/f6897a5bb7ca767df8eb465bf15b193c878fffbf
53
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
53
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.
53
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/70048beee894074e9718206a0017d9b080ee66ff
53
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
52
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/c0ae1d179dba6f3acd0e55be55718c97c9028698
51
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.
51
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/25bd01f17d5f01fc78bea5eb5308b2c0d79e2889
50
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
50
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. This package was built from the source at: https://github.com/aspnet/Universe/tree/244e037a222a7cd0a17feafb7f3a625fde40de97
50
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
50
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/0bc3c376f0cd14335e8b3afca69596acabeb1f80
49
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/0a2e366eaf4d29b24b9a98e5782a04bef573189e
49
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/bd1e14b7d16b798de8a874189c89afed755a266c
49
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/62c098bc170f50feca15916e81cb7f321ffc52ff
49

.NET 10.0

Version Downloads Last updated
10.0.0-preview.5.25277.114 2 06/11/2025
10.0.0-preview.4.25258.110 11 05/13/2025
10.0.0-preview.3.25172.1 11 04/16/2025
10.0.0-preview.2.25164.1 15 03/21/2025
10.0.0-preview.1.25120.3 18 02/25/2025
9.0.6 2 06/14/2025
9.0.5 10 05/15/2025
9.0.4 9 04/14/2025
9.0.3 16 03/11/2025
9.0.2 16 02/16/2025
9.0.1 23 01/19/2025
9.0.0 35 11/13/2024
9.0.0-rc.2.24474.3 33 10/10/2024
9.0.0-rc.1.24452.1 28 09/17/2024
9.0.0-preview.7.24406.2 29 08/13/2024
9.0.0-preview.6.24328.4 34 07/10/2024
9.0.0-preview.5.24306.11 40 06/13/2024
9.0.0-preview.4.24267.6 25 06/21/2024
9.0.0-preview.3.24172.13 43 04/13/2024
9.0.0-preview.2.24128.4 33 03/14/2024
9.0.0-preview.1.24081.5 33 03/06/2024
8.0.17 2 06/13/2025
8.0.16 11 05/15/2025
8.0.15 11 04/11/2025
8.0.14 16 03/11/2025
8.0.13 19 02/14/2025
8.0.12 21 01/20/2025
8.0.11 26 11/13/2024
8.0.10 32 10/10/2024
8.0.8 34 08/15/2024
8.0.7 31 07/10/2024
8.0.6 26 05/30/2024
8.0.5 37 05/14/2024
8.0.4 32 04/09/2024
8.0.3 27 03/12/2024
8.0.2 38 02/22/2024
8.0.1 35 01/14/2024
8.0.0 47 11/17/2023
8.0.0-rc.2.23480.2 47 10/20/2023
8.0.0-rc.1.23421.29 50 09/14/2023
8.0.0-preview.7.23375.9 57 08/23/2023
8.0.0-preview.6.23329.11 54 07/17/2023
8.0.0-preview.5.23302.2 51 06/20/2023
8.0.0-preview.4.23260.4 56 06/26/2023
8.0.0-preview.3.23177.8 44 06/28/2023
8.0.0-preview.2.23153.2 55 06/30/2023
8.0.0-preview.1.23112.2 51 07/02/2023
7.0.20 34 05/30/2024
7.0.19 31 05/14/2024
7.0.18 30 04/09/2024
7.0.17 33 03/14/2024
7.0.16 40 02/21/2024
7.0.15 30 01/14/2024
7.0.14 36 11/16/2023
7.0.13 48 10/27/2023
7.0.12 44 10/11/2023
7.0.11 40 09/14/2023
7.0.10 41 08/25/2023
7.0.9 55 07/24/2023
7.0.8 50 07/22/2023
7.0.7 44 07/09/2023
7.0.5 54 05/11/2023
7.0.4 51 06/04/2023
7.0.3 45 04/30/2023
7.0.2 56 01/20/2023
7.0.1 57 03/15/2023
7.0.0 49 01/03/2023
7.0.0-rc.2.22476.2 50 06/04/2023
7.0.0-rc.1.22427.2 48 06/29/2023
7.0.0-preview.7.22376.6 48 06/30/2023
7.0.0-preview.6.22330.3 56 06/30/2023
7.0.0-preview.5.22303.8 55 11/25/2022
7.0.0-preview.4.22251.1 52 05/20/2023
7.0.0-preview.3.22178.4 60 11/01/2022
7.0.0-preview.2.22153.2 54 07/08/2022
7.0.0-preview.1.22109.13 68 03/31/2023
6.0.36 30 11/13/2024
6.0.35 29 10/10/2024
6.0.33 28 08/13/2024
6.0.32 31 07/10/2024
6.0.31 38 05/30/2024
6.0.30 36 05/14/2024
6.0.29 32 04/09/2024
6.0.28 31 03/14/2024
6.0.27 36 02/22/2024
6.0.26 36 01/14/2024
6.0.25 42 11/17/2023
6.0.24 40 10/26/2023
6.0.23 41 10/20/2023
6.0.22 31 10/27/2023
6.0.21 44 08/24/2023
6.0.20 40 08/06/2023
6.0.19 49 08/21/2023
6.0.18 48 07/12/2023
6.0.16 51 05/25/2023
6.0.15 48 04/30/2023
6.0.14 52 04/30/2023
6.0.13 43 04/28/2023
6.0.12 56 02/13/2023
6.0.11 48 11/29/2022
6.0.10 61 10/17/2022
6.0.9 44 10/14/2022
6.0.8 51 08/30/2022
6.0.7 59 07/21/2022
6.0.6 68 07/13/2022
6.0.5 54 06/07/2022
6.0.4 58 10/02/2022
6.0.3 66 03/09/2022
6.0.2 66 02/11/2022
6.0.1 61 12/20/2021
6.0.0 56 11/09/2021
6.0.0-rc.2.21480.10 49 06/29/2023
6.0.0-rc.1.21452.15 55 03/01/2023
6.0.0-preview.7.21378.6 55 12/29/2021
6.0.0-preview.6.21355.2 56 07/17/2022
6.0.0-preview.5.21301.17 55 06/28/2023
6.0.0-preview.4.21253.5 57 10/17/2022
6.0.0-preview.3.21201.13 53 06/30/2023
6.0.0-preview.2.21154.6 51 12/26/2021
6.0.0-preview.1.21103.6 52 12/04/2022
5.0.17 51 03/17/2023
5.0.16 39 06/27/2023
5.0.15 37 07/07/2022
5.0.14 43 03/31/2023
5.0.13 47 12/26/2021
5.0.12 42 01/28/2023
5.0.11 38 11/01/2021
5.0.10 49 09/24/2021
5.0.9 44 05/21/2023
5.0.8 47 07/28/2021
5.0.7 44 03/02/2023
5.0.6 54 04/15/2023
5.0.5 51 03/21/2023
5.0.4 44 04/27/2023
5.0.3 245 02/15/2021
5.0.2 72 01/26/2021
5.0.1 53 05/13/2023
5.0.0 40 04/09/2023
5.0.0-rc.2.20475.17 48 06/14/2023
5.0.0-rc.1.20451.17 62 12/26/2021
5.0.0-preview.8.20414.8 51 11/12/2022
5.0.0-preview.7.20365.19 54 10/13/2022
5.0.0-preview.6.20312.15 50 06/24/2023
5.0.0-preview.5.20279.2 54 11/07/2022
5.0.0-preview.4.20257.10 53 12/26/2021
5.0.0-preview.3.20215.14 50 06/30/2023
5.0.0-preview.2.20167.3 50 12/03/2022
5.0.0-preview.1.20124.5 49 06/29/2023
3.1.32 53 04/17/2023
3.1.31 52 02/04/2023
3.1.30 46 02/20/2023
3.1.29 52 01/29/2023
3.1.28 49 10/10/2022
3.1.27 40 09/11/2022
3.1.26 46 05/04/2023
3.1.25 60 02/01/2023
3.1.24 53 03/29/2023
3.1.23 45 04/05/2023
3.1.22 45 01/23/2023
3.1.21 52 03/31/2023
3.1.20 41 12/26/2021
3.1.19 49 12/26/2021
3.1.18 43 01/20/2023
3.1.17 47 03/30/2023
3.1.16 38 06/11/2023
3.1.15 59 12/26/2021
3.1.14 51 12/26/2021
3.1.13 50 03/17/2023
3.1.12 44 03/19/2023
3.1.11 40 05/04/2023
3.1.10 40 02/23/2023
3.1.9 47 01/18/2023
3.1.8 55 04/15/2023
3.1.7 122 11/09/2020
3.1.6 55 02/20/2023
3.1.5 53 04/28/2023
3.1.4 57 01/24/2023
3.1.3 57 10/06/2022
3.1.2 50 12/26/2021
3.1.1 57 09/28/2022
3.1.0 47 12/26/2021
3.1.0-preview3.19555.2 49 06/26/2023
3.1.0-preview2.19528.8 55 05/03/2023
3.1.0-preview1.19508.20 58 12/26/2021
3.0.3 61 02/04/2023
3.0.2 52 02/17/2023
3.0.0 45 12/26/2021
3.0.0-rc1.19457.4 51 06/29/2023
3.0.0-preview9.19424.4 49 06/29/2023
3.0.0-preview8.19405.7 51 06/30/2023
3.0.0-preview7.19365.7 51 06/30/2023
3.0.0-preview6.19307.2 46 06/24/2023
3.0.0-preview5-19227-01 46 10/14/2022
3.0.0-preview4-19216-03 49 06/05/2023
3.0.0-preview3-19153-02 48 04/29/2023
3.0.0-preview-19075-0444 47 03/30/2023
3.0.0-preview-18579-0056 43 05/15/2023
2.3.0 23 01/20/2025
2.2.0 60 04/05/2023
2.2.0-preview3-35497 50 12/26/2021
2.2.0-preview2-35157 42 05/19/2023
2.2.0-preview1-35029 47 09/13/2022
2.1.6 57 04/05/2023
2.1.3 60 02/18/2023
2.1.2 53 05/07/2023
2.1.1 59 01/24/2023
2.1.0 51 04/01/2023
2.1.0-rc1-final 44 05/11/2023
2.1.0-preview2-final 46 05/08/2023
2.1.0-preview1-final 45 02/09/2023
2.0.4 58 10/06/2022
2.0.3 65 09/30/2022
2.0.2 53 04/20/2023
2.0.1 56 02/04/2023
2.0.0 48 01/24/2023
2.0.0-preview2-final 45 07/22/2022
2.0.0-preview1-final 46 03/22/2023
1.1.6 55 03/22/2023
1.1.5 51 04/01/2023
1.1.4 57 05/10/2023
1.1.3 56 12/26/2021
1.1.2 51 01/06/2023
1.1.1 48 11/21/2022
1.1.0 58 02/13/2023
1.1.0-preview1-final 65 09/09/2022
1.0.6 50 04/08/2023
1.0.5 51 04/02/2023
1.0.4 56 11/09/2022
1.0.3 39 05/01/2023
1.0.2 51 02/03/2023
1.0.1 45 04/02/2023
1.0.0 49 01/24/2023
1.0.0-rc2-final 42 03/15/2023