Skip to content

Commit f2d26d1

Browse files
Merge pull request #212949 from derisen/patch-11
Add notice regarding library usage
2 parents dad8474 + 9a69794 commit f2d26d1

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

articles/active-directory/develop/multi-service-web-app-access-microsoft-graph-as-user.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,10 +275,15 @@ public class IndexModel : PageModel
275275

276276
# [Node.js](#tab/programming-language-nodejs)
277277

278-
The web app gets the user's access token from the incoming requests header, which is then passed down to Microsoft Graph client to make an authenticated request to the `/me` endpoint.
278+
Using the [microsoft-identity-express](https://github.com/Azure-Samples/microsoft-identity-express) package, the web app gets the user's access token from the incoming requests header. microsoft-identity-express detects that the web app is hosted on App Service and gets the access token from the App Service authentication/authorization module. The access token is then passed down to the Microsoft Graph SDK client to make an authenticated request to the `/me` endpoint.
279279

280280
To see this code as part of a sample application, see *graphController.js* in the [sample on GitHub](https://github.com/Azure-Samples/ms-identity-easyauth-nodejs-storage-graphapi/tree/main/2-WebApp-graphapi-on-behalf).
281281

282+
> [!NOTE]
283+
> The microsoft-identity-express package isn't required in your web app for basic authentication/authorization or to authenticate requests with Microsoft Graph. It's possible to [securely call downstream APIs](../../app-service/tutorial-auth-aad.md#call-api-securely-from-server-code) with only the App Service authentication/authorization module enabled.
284+
>
285+
> However, the App Service authentication/authorization is designed for more basic authentication scenarios. Later, when your web app needs to handle more complex scenarios, you can disable the App Service authentication/authorization module and microsoft-identity-express will already be a part of your app.
286+
282287
```nodejs
283288
const graphHelper = require('../utils/graphHelper');
284289
@@ -328,4 +333,4 @@ If you're finished with this tutorial and no longer need the web app or associat
328333
## Next steps
329334

330335
> [!div class="nextstepaction"]
331-
> [App service accesses Microsoft Graph as the app](multi-service-web-app-access-microsoft-graph-as-app.md)
336+
> [App service accesses Microsoft Graph as the app](multi-service-web-app-access-microsoft-graph-as-app.md)

0 commit comments

Comments
 (0)