

The IdentityHostingStartup.cs file contains the configuration of the Identity related services. This is just a text file having configuration instructions. You will also find ScaffoldingReadme.txt file added to the root of the project. You will find Register.cshtml and all related code is added to the solution. Once you do that, visit solution structure again (Area folder). You can either choose one of the existing or create a new data context class. You have to also provide the data context class. For the demo, I selected Account\Register. You can choose one or multiple files which you want to override. In this dialog box, you can see a list of all the files responsible for Identity integration.

Once you click Add, you will be prompted with the following dialog box. Select the Identity scaffolder and click Add. To do that, right-click on the project in the solution explorer and select Add -> New Scaffolded Item. There are no controllers, models and views present related to identity in the solution structure. You will see identity UI nuget package is added as a reference and only _ViewStart.cshtml file present in Areas->Identity->Pages folder to support identity. Once the project is created, look at the project structure. Also, click on Change authentication link and select Individual User Accounts. Select ASP.NET Core 2.1 and choose the Web Application (MVC) template. When you click Ok, you will get the following prompt. It will have no impact on your current stable VS installation.įirst thing first, open Visual Studio “Preview” version, hit Ctrl+Shift+N and select the ASP.NET Core Web Application (.NET Core) project type from the templates.

How to Scaffold Identity UI in ASP.NET Core 2.1 In this post, let’s see how to scaffold identity UI in ASP.NET Core 2.1 and customize it. This is a great feature, but what if you want to customize the UI? Well, ASP.NET Core 2.1.0-preview2 is now available, and it supports scaffolding of identity UI. Earlier, I posted about adding Identity as UI in ASP.NET Core 2.1 application and you will find identity UI nuget package is added and no identity code. This new feature saves you from all the hassle of adding and configuring Identity to an ASP.NET Core application. One of the new features of ASP.NET Core 2.1 is, Identity as UI library.
