How To Add Authentication In ASP.NET Core 6 MVC Project Using Identity for existing database using entityframework
Loading
How To Add Authentication In ASP.NET Core 6 MVC Project Using Identity for existing database using entityframework
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Ali BenchaabanRank #925 · 2.2K reputationPosted Sep 21, 2023, 4:43 AM EDT
Refer to official Microsoft article :
https://learn.microsoft.com/en-us/aspnet/core/security/authentication/scaffold-identity?view=aspnetcore-6.0&tabs=visual-studio
Cr BhargaviRank #420 · 5.9K reputationPosted Sep 21, 2023, 5:13 AM EDT
_Layout.cshtml), select your existing layout page to avoid overwriting your layout with incorrect markup by the scaffolder. For example, select either:Pages/Shared/_Layout.cshtmlfor Razor Pages or Blazor Server projects with existing Razor Pages infrastructure.Views/Shared/_Layout.cshtmlfor MVC projects or Blazor Server projects with existing MVC infrastructure.Contoso.Data.ApplicationDbContextfor a company named "Contoso"). To create a new user class, select the + button for User class and specify the class (for example,ContosoUserfor a company named "Contoso").