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/develop/quickstart-v2-javascript.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Sign in users in JavaScript single-page apps | Azure
3
3
titleSuffix: Microsoft identity platform
4
-
description: Learn how a JavaScript app can call an API that requires access tokens using the Microsoft Identity Platform.
4
+
description: Learn how a JavaScript app can call an API that requires access tokens using the Microsoft identity platform.
5
5
services: active-directory
6
6
author: navyasric
7
7
manager: CelesteDG
@@ -26,7 +26,7 @@ In this quickstart, you use a code sample to learn how a JavaScript single-page
26
26
27
27
* Azure subscription - [create one for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F)
28
28
*[Node.js](https://nodejs.org/en/download/).
29
-
*[Visual Studio Code](https://code.visualstudio.com/download) (to edit project files).
29
+
*[Visual Studio Code](https://code.visualstudio.com/download) (to edit project files)
30
30
31
31
> [!div renderon="docs"]
32
32
> ## Register and download your quickstart application
@@ -56,7 +56,7 @@ In this quickstart, you use a code sample to learn how a JavaScript single-page
56
56
> 1. Select **Register**. On the app **Overview** page, note the **Application (client) ID** value for later use.
57
57
> 1. This quickstart requires the [Implicit grant flow](v2-oauth2-implicit-grant-flow.md) to be enabled. In the left pane of the registered application, select **Authentication**.
58
58
> 1. Under **Platform Configurations**, select **Add a platform**. A panel opens on the left. There, select the **Web Applications** region.
59
-
> 1. Still on the left, set the **Redirect URI** value to http://localhost:3000/. Then select **Access Token** and **ID Token**.
59
+
> 1. Still on the left, set the **Redirect URI** value to `http://localhost:3000/`. Then, select **Access Token** and **ID Token**.
60
60
> 1. Select **Configure**.
61
61
62
62
> [!div class="sxs-lookup" renderon="portal"]
@@ -119,17 +119,17 @@ Select the option that's suitable to your development environment:
119
119
120
120
#### Step 4: Run the project
121
121
122
-
*If you're using [Node.js](https://nodejs.org/en/download/):
122
+
If you're using [Node.js](https://nodejs.org/en/download/):
123
123
124
-
1. To start the server, run the following command from the project directory:
124
+
1. To start the server, run the following command from the project directory:
125
125
126
-
```batch
127
-
npm install
128
-
npm start
129
-
```
126
+
```batch
127
+
npm install
128
+
npm start
129
+
```
130
130
131
-
1. Open a web browser and go to `http://localhost:3000/`.
132
-
1. Select **Sign In** to start the sign-in, and then call Microsoft Graph API.
131
+
1. Open a web browser and go to `http://localhost:3000/`.
132
+
1. Select **Sign In** to start the sign-in, and then call Microsoft Graph API.
133
133
134
134
After the browser loads the application, select **Sign In**. The first time that you sign in, you're prompted to provide your consent to allow the application to access your profile and to sign you in. After you're signed in successfully, your user profile information should be displayed on the page.
0 commit comments