What packages and CLI commands are required to add authentication to an existing ASP.NET Core MVC application?
19:10 27 Jan 2026

I have an existing ASP.NET Core MVC application created in Visual Studio Community (Windows).

The project was originally created without authentication, and I now want to add a basic login system (register, login, logout) using ASP.NET Core Identity.

I would like to know:

  1. Which NuGet packages are required for authentication in an MVC app

  2. Which .NET CLI (dotnet) commands I need to run in the terminal

  3. Any required configuration steps (e.g. Program.cs, DbContext, migrations)

I am using:

  • ASP.NET Core MVC

  • Visual Studio Community

  • Windows

  • .NET ___ (please specify if needed)

I am not looking for a third-party auth provider (Google, Microsoft, etc.), just a local username/password login.

Any guidance or examples would be appreciated.


asp.net database asp.net-core qsqldatabase