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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Cr BhargaviPosted Sep 21, 2023, 9:13 AM
_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").Ali BenchaabanPosted Sep 21, 2023, 8:43 AM
Refer to official Microsoft article :
https://learn.microsoft.com/en-us/aspnet/core/security/authentication/scaffold-identity?view=aspnetcore-6.0&tabs=visual-studio