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-single-page-app.md
+16-24Lines changed: 16 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ manager: celestedg
9
9
ms.service: active-directory
10
10
ms.workload: identity
11
11
ms.topic: quickstart
12
-
ms.date: 09/12/2019
12
+
ms.date: 04/04/2020
13
13
ms.author: mimart
14
14
ms.subservice: B2C
15
15
---
@@ -22,71 +22,63 @@ Azure Active Directory B2C (Azure AD B2C) provides cloud identity management to
22
22
23
23
## Prerequisites
24
24
25
-
-[Visual Studio 2019](https://www.visualstudio.com/downloads/) with the **ASP.NET and web development** workload
25
+
-[Visual Studio Code](https://code.visualstudio.com/)
26
26
-[Node.js](https://nodejs.org/en/download/)
27
27
- Social account from Facebook, Google, or Microsoft
28
28
- Code sample from GitHub: [active-directory-b2c-javascript-msal-singlepageapp](https://github.com/Azure-Samples/active-directory-b2c-javascript-msal-singlepageapp)
29
29
30
30
You can [download the zip archive](https://github.com/Azure-Samples/active-directory-b2c-javascript-msal-singlepageapp/archive/master.zip) or clone the repository:
1. Start the server by running the following commands from the Node.js command prompt:
39
39
40
-
```
40
+
```console
41
41
cd active-directory-b2c-javascript-msal-singlepageapp
42
42
npm install && npm update
43
-
node server.js
43
+
npm start
44
44
```
45
45
46
-
Server.js outputs the port number it's listening on at localhost.
46
+
The server started by *server.js* displays the port it's listening on:
47
47
48
-
```
48
+
```console
49
49
Listening on port 6420...
50
50
```
51
51
52
-
2. Browse to the URL of the application. For example, `http://localhost:6420`.
53
-
54
-
## Sign in using your account
55
-
56
-
1. Click **Login** to start the workflow.
52
+
1. Browse to the URL of the application. For example, `http://localhost:6420`.
57
53
58
54

59
55
60
-
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.
56
+
## Sign in using your account
61
57
62
-
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, click the button of the identity provider you want to use.
58
+
1. Select **Sign In** to start the user journey.
59
+
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.
63
60
64
61

65
62
66
63
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.
67
64
68
-
3. Finish the sign-in process for the identity provider.
65
+
1. Finish the sign-in process for the identity provider.
69
66
70
67
## Access a protected API resource
71
68
72
-
Click **Call Web API** to have your display name returned from the Web API call as a JSON object.
69
+
Select **Call API** to have your display name returned from the web API as a JSON object.
73
70
74
71

75
72
76
73
The sample single-page application includes an access token in the request to the protected web API resource.
77
74
78
-
## Clean up resources
79
-
80
-
You can use your Azure AD B2C tenant if you plan to try other Azure AD B2C quickstarts or tutorials. When no longer needed, you can [delete your Azure AD B2C tenant](faq.md#how-do-i-delete-my-azure-ad-b2c-tenant).
81
-
82
75
## Next steps
83
76
84
77
In this quickstart, you used a sample single-page application to:
85
78
86
-
* Sign in with a custom login page
87
-
* Sign in with a social identity provider
88
-
* Create an Azure AD B2C account
89
-
* Call a web API protected by Azure AD B2C
79
+
- Sign in with a social identity provider
80
+
- Create an Azure AD B2C user account (created automatically at sign-in)
81
+
- Call a web API protected by Azure AD B2C
90
82
91
83
Get started creating your own Azure AD B2C tenant.
0 commit comments