© Eric Vogel 2021
E. VogelBeginning Entity Framework Core 5https://doi.org/10.1007/978-1-4842-6882-7_15

15. Authentication on the Web

Eric Vogel1  
(1)
Okemos, MI, USA
 

In this chapter, I will cover how to set up authentication on our ASP.NET Core MVC application. Our users will be stored in our SQL Server database, and Entity Framework Core 5 will be used to access it.

Install Identity NuGet Packages

The first thing we need to get out of the way is to install the needed NuGet packages for Entity Framework Core 5 Identity and AspNetCore.Identity.UI. Right-click the web project and click Manage NuGet Packages. Then install the Microsoft.AspNetCore.Identity.UI package as seen in Figure 15-1.
Figure 15-1

Install the ASP.NET Core Identity UI Package

The next ...

Get Beginning Entity Framework Core 5: From Novice to Professional now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.