Skip to content

Commit 6e06c88

Browse files
[msid][content-health] tutorial-v2-nodejs-webapp-msal (ADO-2158954)
1 parent 5cd2162 commit 6e06c88

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

articles/active-directory/develop/tutorial-v2-nodejs-webapp-msal.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ manager: CelesteDG
88
ms.service: active-directory
99
ms.subservice: develop
1010
ms.topic: tutorial
11-
ms.date: 02/17/2021
11+
ms.date: 11/09/2022
1212
ms.author: cwerner
1313
---
1414

@@ -26,7 +26,7 @@ Follow the steps in this tutorial to:
2626
> - Add code for user login
2727
> - Test the app
2828
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.
3030

3131
## Prerequisites
3232

@@ -62,7 +62,7 @@ Use the [Express application generator tool](https://expressjs.com/en/starter/ge
6262
npm install
6363
```
6464

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:
6666

6767
```
6868
ExpressWebApp/
@@ -102,7 +102,7 @@ The web app sample in this tutorial uses the [express-session](https://www.npmjs
102102

103103
## Add app registration details
104104

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:
106106

107107
:::code language="text" source="~/ms-identity-node/App/.env":::
108108

@@ -111,7 +111,7 @@ Fill in these details with the values you obtain from Azure app registration por
111111
- `Enter_the_Cloud_Instance_Id_Here`: The Azure cloud instance in which your application is registered.
112112
- For the main (or *global*) Azure cloud, enter `https://login.microsoftonline.com/` (include the trailing forward-slash).
113113
- 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:
115115
- If your application supports *accounts in this organizational directory*, replace this value with the **Tenant ID** or **Tenant name**. For example, `contoso.microsoft.com`.
116116
- If your application supports *accounts in any organizational directory*, replace this value with `organizations`.
117117
- 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
130130

131131
:::code language="js" source="~/ms-identity-node/App/authConfig.js":::
132132

133-
## Add code for user login and token acquisition
133+
## Add code for user sign-in and token acquisition
134134

135135
1. Create a new file named *auth.js* under the *router* folder and add the following code there:
136136

137137
:::code language="js" source="~/ms-identity-node/App/routes/auth.js":::
138138

139-
2. Next, update the *index.js* route by replacing the existing code with the following:
139+
2. Next, update the *index.js* route by replacing the existing code with the following code snippet:
140140

141141
:::code language="js" source="~/ms-identity-node/App/routes/index.js":::
142142

143-
3. Finally, update the *users.js* route by replacing the existing code with the following:
143+
3. Finally, update the *users.js* route by replacing the existing code with the following code snippet:
144144

145145
:::code language="js" source="~/ms-identity-node/App/routes/users.js":::
146146

@@ -166,7 +166,7 @@ Create a file named *fetch.js* in the root of your project and add the following
166166

167167
## Register routers and add state management
168168

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:
170170

171171
:::code language="js" source="~/ms-identity-node/App/app.js":::
172172

0 commit comments

Comments
 (0)