Skip to content

Commit bb44567

Browse files
Copilotwadepickett
andauthored
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>
1 parent d266d77 commit bb44567

File tree

1 file changed

+26
-4
lines changed

1 file changed

+26
-4
lines changed

aspnetcore/security/authentication/add-user-data.md

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
---
22
title: Add, download, and delete user data to Identity in an ASP.NET Core project
3+
ai-usage: ai-assisted
34
author: wadepickett
45
description: Learn how to add custom user data to Identity in an ASP.NET Core project. Delete data per GDPR.
56
ms.author: wpickett
6-
ms.date: 03/15/2022
77
ms.custom: mvc
8+
ms.date: 04/09/2026
89
uid: security/authentication/add-user-data
910
---
1011
# 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
3233

3334
* 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.
3435
* Select **ASP.NET Core Web Application** > **OK**
36+
* In the **Authentication type** dropdown, select **Individual Accounts**.
3537
* Select **Web Application** > **OK**
3638
* Build and run the project.
3739

3840
# [.NET CLI](#tab/net-cli)
3941

4042
```dotnetcli
41-
dotnet new webapp -o WebApp1
43+
dotnet new webapp --auth Individual -o WebApp1
44+
```
45+
46+
For an MVC project, use the following command:
47+
48+
```dotnetcli
49+
dotnet new mvc --auth Individual -o WebApp1
4250
```
4351

4452
---
@@ -179,13 +187,20 @@ Test the app:
179187

180188
* 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.
181189
* Select **ASP.NET Core Web Application** > **OK**
190+
* In the **Authentication** section, select **Individual User Accounts**.
182191
* Select **Web Application** > **OK**
183192
* Build and run the project.
184193

185194
# [.NET CLI](#tab/net-cli)
186195

187196
```dotnetcli
188-
dotnet new webapp -o WebApp1
197+
dotnet new webapp --auth Individual -o WebApp1
198+
```
199+
200+
For an MVC project, use the following command:
201+
202+
```dotnetcli
203+
dotnet new mvc --auth Individual -o WebApp1
189204
```
190205

191206
---
@@ -401,13 +416,20 @@ The additional claim can then be used in the app. In a Razor Page, the `IAuthori
401416
* 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.
402417
* Select **ASP.NET Core Web Application** > **OK**
403418
* Select **ASP.NET Core 2.2** in the dropdown
419+
* In the **Authentication** section, select **Individual User Accounts**.
404420
* Select **Web Application** > **OK**
405421
* Build and run the project.
406422

407423
# [.NET CLI](#tab/net-cli)
408424

409425
```dotnetcli
410-
dotnet new webapp -o WebApp1
426+
dotnet new webapp --auth Individual -o WebApp1
427+
```
428+
429+
For an MVC project, use the following command:
430+
431+
```dotnetcli
432+
dotnet new mvc --auth Individual -o WebApp1
411433
```
412434

413435
---

0 commit comments

Comments
 (0)