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/tutorial-v2-nodejs-webapp-msal.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ manager: CelesteDG
8
8
ms.service: active-directory
9
9
ms.subservice: develop
10
10
ms.topic: tutorial
11
-
ms.date: 02/17/2021
11
+
ms.date: 11/09/2022
12
12
ms.author: cwerner
13
13
---
14
14
@@ -26,7 +26,7 @@ Follow the steps in this tutorial to:
26
26
> - Add code for user login
27
27
> - Test the app
28
28
29
-
For additional guidance, refer to the [sample code](https://github.com/Azure-Samples/ms-identity-node) that shows how to use MSAL Node to login, logout and acquire an access token for a protected resource such as Microsoft Graph.
29
+
For more information, see the [sample code](https://github.com/Azure-Samples/ms-identity-node) that shows how to use MSAL Node to sign in, sign out and acquire an access token for a protected resource such as Microsoft Graph.
30
30
31
31
## Prerequisites
32
32
@@ -62,7 +62,7 @@ Use the [Express application generator tool](https://expressjs.com/en/starter/ge
62
62
npm install
63
63
```
64
64
65
-
You now have a simple Express web app. The file and folder structure of your project should look similar to the following:
65
+
You now have a simple Express web app. The file and folder structure of your project should look similar to the following folder structure:
66
66
67
67
```
68
68
ExpressWebApp/
@@ -102,7 +102,7 @@ The web app sample in this tutorial uses the [express-session](https://www.npmjs
102
102
103
103
## Add app registration details
104
104
105
-
1. Create a*.env* file in the root of your project folder. Then add the following code:
105
+
1. Create an*.env* file in the root of your project folder. Then add the following code:
@@ -111,7 +111,7 @@ Fill in these details with the values you obtain from Azure app registration por
111
111
-`Enter_the_Cloud_Instance_Id_Here`: The Azure cloud instance in which your application is registered.
112
112
- For the main (or *global*) Azure cloud, enter `https://login.microsoftonline.com/` (include the trailing forward-slash).
113
113
- For **national** clouds (for example, China), you can find appropriate values in [National clouds](authentication-national-cloud.md).
114
-
-`Enter_the_Tenant_Info_here` should be one of the following:
114
+
-`Enter_the_Tenant_Info_here` should be one of the following parameters:
115
115
- If your application supports *accounts in this organizational directory*, replace this value with the **Tenant ID** or **Tenant name**. For example, `contoso.microsoft.com`.
116
116
- If your application supports *accounts in any organizational directory*, replace this value with `organizations`.
117
117
- If your application supports *accounts in any organizational directory and personal Microsoft accounts*, replace this value with `common`.
@@ -130,17 +130,17 @@ Fill in these details with the values you obtain from Azure app registration por
@@ -166,7 +166,7 @@ Create a file named *fetch.js* in the root of your project and add the following
166
166
167
167
## Register routers and add state management
168
168
169
-
In the *app.js* file in the root of the project folder, register the routes you have created earlier and add session support for tracking authentication state using the **express-session** package. Replace the existing code there with the following:
169
+
In the *app.js* file in the root of the project folder, register the routes you've created earlier and add session support for tracking authentication state using the **express-session** package. Replace the existing code there with the following code snippet:
0 commit comments