Authentication - Views Folder, Pages not displaying

Dean Everhart 1,541 Reputation points
2023-04-19T10:57:09.5733333+00:00

https://localhost:7063/Identity/Account/Register User's image

I'm not seeing the Areas.Identity.Account or Controller path in the project. User's image

Project on GitHub: AuthenticationTutorial
Tutorial: Introduction to Identity on ASP.NET Core / Examine Register
Notes: Authentication Steps
Environment
Framework: Net Core 6 / MVC
Visual Studio: Community 2022
Windows: 11 (64 bit)
Developer technologies ASP.NET ASP.NET Core
Developer technologies ASP.NET Other
{count} votes

2 answers

Sort by: Most helpful
  1. AgaveJoe 30,126 Reputation points
    2023-04-19T13:06:26.7766667+00:00

    I'm not seeing the Areas.Identity.Account or Controller path in the project.

    The Visual Studio "Individual Account" template add Identity as a Razor Class library. Razor Pages do not have Controllers or Views.

    Scaffold Identity in ASP.NET Core projects

    ASP.NET Core provides ASP.NET Core Identity as a Razor Class Library. Applications that include Identity can apply the scaffolder to selectively add the source code contained in the Identity Razor Class Library (RCL).

    If you want to see the Razor Pages then use the scaffold wizard to override the pages.

    You might want to generate source code so you can modify the code and change the behavior. For example, you could instruct the scaffolder to generate the code used in registration. Generated code takes precedence over the same code in the Identity RCL. To gain full control of the UI and not use the default RCL, see the section Create full Identity UI source.

    Honestly, it seems like you are guessing how the tools and technology work.


  2. Dean Everhart 1,541 Reputation points
    2023-04-19T13:23:40.6466667+00:00

    In trying to Examine Register I have searched solution for a few keywords pictured in the tutorial..._userManager, IdentityUser, Input.Password. No results found.

    Where is the razor class library? How do I find it to examine it? The tutorial mentions endpoints...where are the endpoints?


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.