Skip to content

Commit 0260af1

Browse files
authored
Merge pull request #212997 from MicrosoftDocs/main
Merge main to live, 4 AM
2 parents 14d9c15 + 218e21a commit 0260af1

File tree

245 files changed

+2915
-1004
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

245 files changed

+2915
-1004
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)

articles/active-directory/external-identities/azure-ad-account.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Azure AD account is an identity provider option for your self-service sign-up us
3838
![Azure AD account in a self-service sign-up user flow](media/azure-ad-account/azure-ad-account-user-flow.png)
3939

4040
## Verifying the application's publisher domain
41-
As of November 2020, new application registrations show up as unverified in the user consent prompt unless [the application's publisher domain is verified](../develop/howto-configure-publisher-domain.md) ***and*** the company’s identity has been verified with the Microsoft Partner Network and associated with the application. ([Learn more](../develop/publisher-verification-overview.md) about this change.) Note that for Azure AD user flows, the publisher’s domain appears only when using a [Microsoft account](microsoft-account.md) or other Azure AD tenant as the identity provider. To meet these new requirements, do the following:
41+
As of November 2020, new application registrations show up as unverified in the user consent prompt unless [the application's publisher domain is verified](../develop/howto-configure-publisher-domain.md), ***and*** the company’s identity has been verified with the Microsoft Partner Network and associated with the application. ([Learn more](../develop/publisher-verification-overview.md) about this change.) For Azure AD user flows, the publisher’s domain appears only when using a [Microsoft account](microsoft-account.md) or other Azure AD tenant as the identity provider. To meet these new requirements, follow these steps:
4242

4343
1. [Verify your company identity using your Microsoft Partner Network (MPN) account](/partner-center/verification-responses). This process verifies information about your company and your company’s primary contact.
4444
1. Complete the publisher verification process to associate your MPN account with your app registration using one of the following options:
@@ -48,4 +48,4 @@ As of November 2020, new application registrations show up as unverified in the
4848
## Next steps
4949

5050
- [Add Azure Active Directory B2B collaboration users](add-users-administrator.md)
51-
- [Add self-service sign-up to an app](self-service-sign-up-user-flow.md)
51+
- [Add self-service sign-up to an app](self-service-sign-up-user-flow.md)
-7.05 KB
Loading
-2.99 KB
Loading
-4.21 KB
Loading

articles/app-service/tutorial-connect-app-access-microsoft-graph-as-app-javascript.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ const appSettings = {
5656
},
5757
authRoutes: {
5858
redirect: "/.auth/login/aad/callback", // Enter the redirect URI here
59-
error: "/error", // enter the relative path to error handling route
6059
unauthorized: "/unauthorized" // enter the relative path to unauthorized route
6160
},
6261
}
@@ -118,4 +117,4 @@ getAuthenticatedClient = (accessToken) => {
118117

119118
[!INCLUDE [tutorial-clean-up-steps](./includes/tutorial-cleanup.md)]
120119

121-
[!INCLUDE [tutorial-content-below-code](./includes/tutorial-microsoft-graph-as-app/cleanup.md)]
120+
[!INCLUDE [tutorial-content-below-code](./includes/tutorial-microsoft-graph-as-app/cleanup.md)]
193 KB
Loading
193 KB
Loading
311 KB
Loading
311 KB
Loading

0 commit comments

Comments
 (0)