Why so many template parts seems to be not accesible with .NET Core and Angular Individual Account Authentication Template

alexandre amiel 41 Reputation points
2021-10-29T09:49:52.493+00:00

I'm a .NET Core Developer which has for a new project the necessity to implement .NET Core Authentication using Individual Account.
The template using .NET and Angular with Individual Account and Authentication works, but so many parts of the template are unreachable for my actual understanding of the .NET framework. There are many features implemented in this project template ( Confirming User Mail, Enabling User 2 Factors Authentication, Adding Third Party Providers like Google or Facebook ) which are great, butthese parts are not accessible in the angular templates, even not in the razor pages, so it's complicated for me to use these features . or i can these template parts missing from source code ? Like User Confirmed template, i dont know where to find this template.
Question : Where is the template for : Identity/Account/RegisterConfirmation ?
Thanks for your support !

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,140 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,204 questions
0 comments No comments
{count} votes

Accepted answer
  1. Zhi Lv - MSFT 32,006 Reputation points Microsoft Vendor
    2021-11-02T06:14:33.353+00:00

    Hi @alexandre amiel ,

    By default, when we use the .NET Core and Angular Individual Account Authentication Template create an application, it will use the Asp.net core Identity provides the user interface (UI) login functionality and manager users and roles. And by default, these pages are in the Identity Razor Class Library (RCL). To see these page or modify the code and change the behavior, you can refer the following steps:

    1. Using Visual Studio 2019, create a new Asp.net 5 project with the Asp.net Core and Angular template, and select the Individual Account Authentication type.
    2. Open the Nuget and update the relate package to the latest version. 145704-image.png
    3. Right click the Project, click Add => New Scaffolded Item => Identity => Identity => click Add button, then you can select the Identity page and set the Data Context Class 145679-image.png After click "Add" button, you can see these Identity page from the Areas/Identity/Pages folders, then you can modify the Identity page content: 145640-image.png

    More detail information about custom Identity, you can see Scaffold Identity in ASP.NET Core projects and Identity model customization in ASP.NET Core.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best regards,
    Dillion

    1 person found this answer helpful.
    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. alexandre amiel 41 Reputation points
    2021-10-29T10:06:08.647+00:00

    I'm installing RazorRuntimeCompilation package, hope it will helps to go deeper in the source code ! ( following instructions here : https://learn.microsoft.com/en-us/aspnet/core/mvc/views/view-compilation?view=aspnetcore-5.0&tabs=visual-studio )

    0 comments No comments

  2. Bruce (SqlWork.com) 55,041 Reputation points
    2021-10-29T15:02:41.053+00:00

    The angular and react templates are SPA applications. These should use oauth for authentication, and this is what the templates do. The oauth server handles all registration, and account management, not your application. See

    https://learn.microsoft.com/en-us/aspnet/core/security/authentication/identity-api-authorization?view=aspnetcore-5.0

    0 comments No comments

  3. alexandre amiel 41 Reputation points
    2021-10-29T16:11:47.87+00:00

    Yes, but there are also additional Templates I cannot find out how to access the code source, lets say if i want to modify the design of Third Party login Buttons ?