From bb44567c145c6aa183f420980bdb116a7ad141d3 Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Thu, 9 Apr 2026 11:55:43 -0700 Subject: [PATCH] Add missing Individual User Accounts authentication step to Identity tutorial (#36959) * Initial plan * Add missing Individual User Accounts auth step to Identity tutorial Fixes #33154 - The "Create a Razor web app" section was missing the critical step of selecting Individual User Accounts authentication when creating the project. Without this, the project has no Identity support and the Identity scaffolder in the next section fails. Added the authentication selection step in Visual Studio tabs and the --auth Individual flag in .NET CLI tabs across all three moniker ranges. Agent-Logs-Url: https://github.com/dotnet/AspNetCore.Docs/sessions/87ce90d9-242f-405a-9686-2bcb2ad74699 Co-authored-by: wadepickett <10985336+wadepickett@users.noreply.github.com> * Add MVC CLI command and update wording across all moniker sections Agent-Logs-Url: https://github.com/dotnet/AspNetCore.Docs/sessions/e4982afd-8824-4d91-9f84-045ac1db69ba Co-authored-by: wadepickett <10985336+wadepickett@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: wadepickett <10985336+wadepickett@users.noreply.github.com> --- .../security/authentication/add-user-data.md | 30 ++++++++++++++++--- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/aspnetcore/security/authentication/add-user-data.md b/aspnetcore/security/authentication/add-user-data.md index 3b61b8b0766d..eb50e5f95674 100644 --- a/aspnetcore/security/authentication/add-user-data.md +++ b/aspnetcore/security/authentication/add-user-data.md @@ -1,10 +1,11 @@ --- title: Add, download, and delete user data to Identity in an ASP.NET Core project +ai-usage: ai-assisted author: wadepickett description: Learn how to add custom user data to Identity in an ASP.NET Core project. Delete data per GDPR. ms.author: wpickett -ms.date: 03/15/2022 ms.custom: mvc +ms.date: 04/09/2026 uid: security/authentication/add-user-data --- # Add, download, and delete custom user data to Identity in an ASP.NET Core project @@ -32,13 +33,20 @@ The project sample is created from a Razor Pages web app, but the instructions a * From the Visual Studio **File** menu, select **New** > **Project**. Name the project **WebApp1** if you want to it match the namespace of the [download sample](https://github.com/dotnet/AspNetCore.Docs/tree/live/aspnetcore/security/authentication/add-user-data) code. * Select **ASP.NET Core Web Application** > **OK** +* In the **Authentication type** dropdown, select **Individual Accounts**. * Select **Web Application** > **OK** * Build and run the project. # [.NET CLI](#tab/net-cli) ```dotnetcli -dotnet new webapp -o WebApp1 +dotnet new webapp --auth Individual -o WebApp1 +``` + +For an MVC project, use the following command: + +```dotnetcli +dotnet new mvc --auth Individual -o WebApp1 ``` --- @@ -179,13 +187,20 @@ Test the app: * From the Visual Studio **File** menu, select **New** > **Project**. Name the project **WebApp1** if you want to it match the namespace of the [download sample](https://github.com/dotnet/AspNetCore.Docs/tree/live/aspnetcore/security/authentication/add-user-data) code. * Select **ASP.NET Core Web Application** > **OK** +* In the **Authentication** section, select **Individual User Accounts**. * Select **Web Application** > **OK** * Build and run the project. # [.NET CLI](#tab/net-cli) ```dotnetcli -dotnet new webapp -o WebApp1 +dotnet new webapp --auth Individual -o WebApp1 +``` + +For an MVC project, use the following command: + +```dotnetcli +dotnet new mvc --auth Individual -o WebApp1 ``` --- @@ -401,13 +416,20 @@ The additional claim can then be used in the app. In a Razor Page, the `IAuthori * From the Visual Studio **File** menu, select **New** > **Project**. Name the project **WebApp1** if you want to it match the namespace of the [download sample](https://github.com/dotnet/AspNetCore.Docs/tree/live/aspnetcore/security/authentication/add-user-data) code. * Select **ASP.NET Core Web Application** > **OK** * Select **ASP.NET Core 2.2** in the dropdown +* In the **Authentication** section, select **Individual User Accounts**. * Select **Web Application** > **OK** * Build and run the project. # [.NET CLI](#tab/net-cli) ```dotnetcli -dotnet new webapp -o WebApp1 +dotnet new webapp --auth Individual -o WebApp1 +``` + +For an MVC project, use the following command: + +```dotnetcli +dotnet new mvc --auth Individual -o WebApp1 ``` ---