Where are the Login and Register pages in an AspNet Core scaffolded app?

You can do this from within Visual Studio, Right click on your Project and select Add->New Scaffolded Item

New Scaffolded Item

Then select Identity and click on Add Select Identity

Now select the pages you want to override. Drop down Data Context Class: and your Namespace and Context should be pre-filled in for you.

Select Pages

Finally click on Add. If you have already existing override files there (i.e. from the template) this will warn about overwriting them.


It was announced during the preview of asp.net core 2.1 that the Identity UI would be moved to a new Razor Class Library. https://blogs.msdn.microsoft.com/webdev/2018/03/02/aspnetcore-2-1-identity-ui/

It is still possible to scaffold the Identity Views into your own project if you prefer local views: https://docs.microsoft.com/en-us/aspnet/core/security/authentication/scaffold-identity?view=aspnetcore-2.1&tabs=visual-studio