ASP.NET Core [P17] :Introduction to Identity on ASP.NET Core



ASP.NET Core [P17] :Introduction to Identity on ASP.NET Core

ASP.NET Core [P17] :Introduction to Identity on ASP.NET Core

ASP.NET Core Tutorial for Beginners
ASP.NET Core Fundamentals
Learn how to create app in ASP.NET Core using Visual Studio and the C# language.
[P17] : Introduction to Identity on ASP.NET Core

We will discussing Identity on ASP.NET Core
ASP.NET Core Identity:

Is an API that supports user interface (UI) login functionality.
Manages users, passwords, profile data, roles, claims, tokens, email confirmation, and more.

Useful commands

Create a Web app with authentication
.NET CLI
dotnet new webapp –auth Individual -o WebApp1
Apply migrations
dotnet tool install –global dotnet-ef
dotnet ef database update

Scaffold Register, Login, LogOut, and RegisterConfirmation

dotnet add package Microsoft.VisualStudio.Web.CodeGeneration.Design
dotnet aspnet-codegenerator identity -dc WebApp1.Data.ApplicationDbContext –files “Account.Register;Account.Login;Account.Logout;Account.RegisterConfirmation”