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
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ In this quickstart, you use a code sample to learn how a JavaScript single-page
27
27
28
28
* Azure subscription - [create one for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F)
29
29
*[Node.js](https://nodejs.org/en/download/).
30
-
*Either [Visual Studio Code](https://code.visualstudio.com/download) (to edit project files), or [Visual Studio 2019](https://visualstudio.microsoft.com/downloads/) (ro run the project as a Visual Studio Solution).
30
+
*[Visual Studio Code](https://code.visualstudio.com/download) (to edit project files).
31
31
32
32
> [!div renderon="docs"]
33
33
> ## Register and download your quickstart application
@@ -69,20 +69,18 @@ In this quickstart, you use a code sample to learn how a JavaScript single-page
69
69
70
70
#### Step 2: Download the project
71
71
72
-
Select the option that's suitable to your development environment:
73
-
74
-
* To run the project with a web server by using Node.js, [download the core project files](https://github.com/Azure-Samples/active-directory-javascript-graphapi-v2/archive/quickstart.zip). To open the files, use an editor such as [Visual Studio Code](https://code.visualstudio.com/).
72
+
> [!div renderon="docs"]
73
+
> To run the project with a web server by using Node.js, [download the core project files](https://github.com/Azure-Samples/active-directory-javascript-graphapi-v2/archive/quickstart.zip).
75
74
76
-
* (Optional) To run the project with the IIS server, [download the Visual Studio project](https://github.com/Azure-Samples/active-directory-javascript-graphapi-v2/archive/vsquickstart.zip). Extract the zip file to a local folder (for example, *C:\Azure-Samples*).
> In the *JavaScriptSPA* folder, edit *index.html*, and set the `clientID` and `authority` values under `msalConfig`.
82
83
83
-
> [!div class="sxs-lookup" renderon="portal"]
84
-
> In the *JavaScriptSPA* folder, edit *index.html*, and replace `msalConfig` with the following code:
85
-
86
84
```javascript
87
85
var msalConfig = {
88
86
auth: {
@@ -115,9 +113,14 @@ var msalConfig = {
115
113
> > To find the values of **Application (client) ID**, **Directory (tenant) ID**, and **Supported account types**, go to the app's **Overview** page in the Azure portal.
116
114
>
117
115
118
-
#### Step 4: Run the project
116
+
> [!div class="sxs-lookup" renderon="portal"]
117
+
> #### Step 3: Your app is configured and ready to run
118
+
> We have configured your project with values of your app's properties.
119
+
120
+
> [!div renderon="docs"]
121
+
> #### Step 4: Run the project
119
122
120
-
* If you're using [Node.js](https://nodejs.org/en/download/):
123
+
Run the project with a web server by using [Node.js](https://nodejs.org/en/download/):
121
124
122
125
1. To start the server, run the following command from the project directory:
123
126
@@ -129,9 +132,6 @@ var msalConfig = {
129
132
1. Open a web browser and go to `http://localhost:30662/`.
130
133
1. Select **Sign In** to start the sign-in, and then call Microsoft Graph API.
131
134
132
-
133
-
* If you're using [Visual Studio](https://visualstudio.microsoft.com/downloads/), select the project solution, and then select F5 to run the project.
134
-
135
135
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