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
az webapp auth set --resource-group myAuthResourceGroup --name <front-end-app-name> --body "$authSettings"
235
235
```
236
236
237
237
The commands effectively add a `loginParameters` property with additional custom scopes. Here's an explanation of the requested scopes:
238
238
239
-
-`openid`, `profile`, and `email` are requested by App Service by default already. For information, see [OpenID Connect Scopes](../active-directory/develop/v2-permissions-and-consent.md#openid-connect-scopes).
240
-
-`api://<back-end-client-id>/user_impersonation` is an exposed API in your backend app registration. It's the scope that gives you a JWT token that includes the backend app as a [token audience](https://wikipedia.org/wiki/JSON_Web_Token).
239
+
-`openid` is requested by App Service by default already. For information, see [OpenID Connect Scopes](../active-directory/develop/v2-permissions-and-consent.md#openid-connect-scopes).
241
240
-[offline_access](../active-directory/develop/v2-permissions-and-consent.md#offline_access) is included here for convenience (in case you want to [refresh tokens](#what-happens-when-the-frontend-token-expires)).
241
+
-`api://<back-end-client-id>/user_impersonation` is an exposed API in your backend app registration. It's the scope that gives you a JWT token that includes the backend app as a [token audience](https://wikipedia.org/wiki/JSON_Web_Token).
242
242
243
243
> [!TIP]
244
244
> - To view the `api://<back-end-client-id>/user_impersonation` scope in the Azure portal, go to the **Authentication** page for the backend app, click the link under **Identity provider**, then click **Expose an API** in the left menu.
@@ -318,6 +318,9 @@ if (bearerToken) {
318
318
319
319
1. Use the frontend web site in a browser. TheURL is in the formate of`https://<front-end-app-name>.azurewebsites.net/`.
320
320
1. The browser requests your authentication to the web app. Complete the authentication.
321
+
322
+
:::image type="content" source="./media/tutorial-auth-aad/browser-screenshot-authentication-permission-requested-pop-up.png" alt-text="Screenshot of browser authentication pop-up requesting permissions.":::
323
+
321
324
1. After authentication completes, the frontend application returns the home page of the app.
322
325
323
326
:::image type="content" source="./media/tutorial-auth-aad/app-home-page.png" alt-text="Screenshot of web browser showing frontend application after successfully completing authentication.":::
0 commit comments