ASP.NET Core Identity Deep Dive — Nuget Packages

Soheil Alizadeh
2 min readFeb 19, 2019

--

In the previous blog we talked about installation and In this blog we going to learn about ASP.NET Core Identity packages.

Here we have some nuget packages that all of theme related to ASP.NET Core Identity.

Microsoft.AspNetCore.Identity

This package consist Managers, Extensions and some constant classes that helps use to configure asp.net core identity to the a web app. source

Microsoft.AspNetCore.Identity.EntityFrameworkCore

This package is for implementation of default stores in asp.net core identity that implemented by Entity Framework Core. source

Microsoft.AspNetCore.Identity.UI

This package consist a default UI for asp.net core identity web app. when you use default UI feature in identity it prepare some razor pages with their implementation. source

Microsoft.Extensions.Identity.Core

This package consist validators, options, managers and interfaces for stores with some abstract class. source

Microsoft.Extensions.Identity.Stores

This package consist asp.net core identity models and some abstract class for store. source

We’ll talk about managers, stores, validators, default UI… in the future blogs and we’ll understand what are theme and what they do.

You really don’t need to install specific package for asp.net core identity but just when you use or created a asp.net core web app that it have Microsoft.AspNetCore.App. this package contains a collection of packages that we use in your application like Entity Framework Core and here Identity. you cloud see list of its packages here.

But is there a question that is, when we should install the identity packages?!

Some times we need to create new projects in our solution, like following solution tree:

  • App.Web
  • App.Data (class library)

Here in App.Data we force to install the identity packages that we need, cuz here we haven’t any packages like Microsoft.AspNetCore.App for that.

Community Packages

Also there are some community packages for asp.net core store these store cloud be a alternative for Entity Framework Core store. asp.net core identity team designed identity store independently so that you cloud have you own data store and you aren’t force to use Entity Framework.

See you in the next blog 🤞❤✔.

--

--