You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/active-directory-b2c/quickstart-web-app-dotnet.md
+16-16Lines changed: 16 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,13 +3,13 @@ title: "Quickstart: Set up sign-in for an ASP.NET web app"
3
3
titleSuffix: Azure AD B2C
4
4
description: In this Quickstart, run a sample ASP.NET web app that uses Azure Active Directory B2C to provide account sign-in.
5
5
services: active-directory-b2c
6
-
author: kengaderdus
6
+
author: garrodonnell
7
7
manager: CelesteDG
8
8
ms.service: active-directory
9
9
ms.topic: quickstart
10
10
ms.custom: devx-track-csharp, mvc, mode-other
11
-
ms.date: 10/01/2021
12
-
ms.author: kengaderdus
11
+
ms.date: 01/17/2023
12
+
ms.author: godonnell
13
13
ms.subservice: B2C
14
14
---
15
15
@@ -23,7 +23,7 @@ In this quickstart, you use an ASP.NET application to sign in using a social ide
23
23
24
24
## Prerequisites
25
25
26
-
-[Visual Studio 2019](https://www.visualstudio.com/downloads/) with the **ASP.NET and web development** workload.
26
+
-[Visual Studio 2022](https://www.visualstudio.com/downloads/) with the **ASP.NET and web development** workload.
27
27
- A social account from Facebook, Google, or Microsoft.
28
28
-[Download a zip file](https://github.com/Azure-Samples/active-directory-b2c-dotnet-webapp-and-webapi/archive/master.zip) or clone the sample web application from GitHub.
29
29
@@ -39,10 +39,10 @@ In this quickstart, you use an ASP.NET application to sign in using a social ide
39
39
## Run the application in Visual Studio
40
40
41
41
1. In the sample application project folder, open the **B2C-WebAPI-DotNet.sln** solution in Visual Studio.
42
-
2. For this quickstart, you run both the **TaskWebApp** and **TaskService** projects at the same time. Right-click the **B2C-WebAPI-DotNet** solution in Solution Explorer, and then select **Set StartUp Projects**.
43
-
3. Select **Multiple startup projects** and change the **Action** for both projects to **Start**.
44
-
4. Select **OK**.
45
-
5. Press **F5** to debug both applications. Each application opens in its own browser tab:
42
+
1. For this quickstart, you run both the **TaskWebApp** and **TaskService** projects at the same time. Right-click the **B2C-WebAPI-DotNet** solution in Solution Explorer, and then select **Set StartUp Projects**.
43
+
1. Select **Multiple startup projects** and change the **Action** for both projects to **Start**.
44
+
1. Select **OK**.
45
+
1. Press **F5** to debug both applications. Each application opens in its own browser tab:
46
46
47
47
- `https://localhost:44316/` - The ASP.NET web application. You interact directly with this application in the quickstart.
48
48
- `https://localhost:44332/` - The web API that's called by the ASP.NET web application.
@@ -51,37 +51,37 @@ In this quickstart, you use an ASP.NET application to sign in using a social ide
51
51
52
52
1. Select **Sign up / Sign in** in the ASP.NET web application to start the workflow.
53
53
54
-

54
+

55
55
56
56
The sample supports several sign-up options including using a social identity provider or creating a local account using an email address. For this quickstart, use a social identity provider account from either Facebook, Google, or Microsoft.
57
57
58
-
2. Azure AD B2C presents a sign-in page for a fictitious company called Fabrikam for the sample web application. To sign up using a social identity provider, select the button of the identity provider you want to use.
58
+
1. Azure AD B2C presents a sign-in page for a fictitious company called Fabrikam for the sample web application. To sign up using a social identity provider, select the button of the identity provider you want to use.
59
59
60
-

60
+

61
61
62
62
You authenticate (sign in) using your social account credentials and authorize the application to read information from your social account. By granting access, the application can retrieve profile information from the social account such as your name and city.
63
63
64
-
3. Finish the sign-in process for the identity provider.
64
+
1. Finish the sign-in process for the identity provider.
65
65
66
66
## Edit your profile
67
67
68
68
Azure Active Directory B2C provides functionality to allow users to update their profiles. The sample web app uses an Azure AD B2C edit profile user flow for the workflow.
69
69
70
70
1. In the application menu bar, select your profile name, and then select **Edit profile** to edit the profile you created.
71
71
72
-

72
+

73
73
74
-
2. Change your **Display name** or **City**, and then select **Continue** to update your profile.
74
+
1. Change your **Display name** or **City**, and then select **Continue** to update your profile.
75
75
76
76
The change is displayed in the upper right portion of the web application's home page.
77
77
78
78
## Access a protected API resource
79
79
80
80
1. Select **To-Do List** to enter and modify your to-do list items.
81
81
82
-
2. In the **New Item** text box, enter text. To call the Azure AD B2C protected web API that adds a to-do list item, select **Add**.
82
+
1. In the **New Item** text box, enter text. To call the Azure AD B2C protected web API that adds a to-do list item, select **Add**.
83
83
84
-

84
+

85
85
86
86
The ASP.NET web application includes an Azure AD access token in the request to the protected web API resource to perform operations on the user's to-do list items.
0 commit comments