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/app-service/configure-authentication-provider-google.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ To complete the procedure, you must have a Google account that has a verified em
19
19
20
20
## <aname="register"> </a>Register your application with Google
21
21
22
-
1. Follow the Google documentation at [Sign In with Google for Web - Setup](https://developers.google.com/identity/gsi/web/guides/fedcm-migration) to create a client ID and client secret. You don't need to make any code changes.
22
+
1. Follow the Google documentation at [Get your Google API client ID](https://developers.google.com/identity/gsi/web/guides/get-google-api-clientid) to create a client ID and client secret. You don't need to make any code changes.
23
23
- For **Authorized JavaScript Origins**, use `https://<app-name>.azurewebsites.net`, replacing `<app-name>` with the name of your app.
24
24
- For **Authorized Redirect URI**, use `https://<app-name>.azurewebsites.net/.auth/login/google/callback`.
25
25
1. Make a note of the **App ID** and the **App Secret** values to use later.
@@ -37,11 +37,13 @@ To complete the procedure, you must have a Google account that has a verified em
37
37
38
38
1. Enter the **App ID** and **App Secret** values you obtained previously.
39
39
40
-
1.Leave the rest of the settings at their default values, and select **Add**.
40
+
1.The **App Service authentication settings** section has settings such as how your application responds to unauthenticated requests. The default selections redirect all requests to sign in with the new provider. You can customize this behavior now or later. For now, leave the rest of the settings at their default values.
41
41
42
-
On the **Authentication** page, the **Google** provider appears in the **Identity provider** section. The**Authentication settings** section shows settings such as how your application responds to unauthenticated requests.
42
+
1. Select**Add**.
43
43
44
-
The default selections redirect all requests to sign in with the new provider. You can customize this behavior now or later by selecting **Edit** next to **Authentication settings**. To learn more about the options, see [Authentication flow](overview-authentication-authorization.md#authentication-flow).
44
+
The **Google** provider now appears in the **Identity provider** section of the **Authentication** page. You can edit the provider settings by selecting the pencil icon under **Edit**.
45
+
46
+
The **Authentication settings** section shows settings such as how the application responds to unauthenticated requests. You can edit these settings by selecting **Edit** next to **Authentication settings**. To learn more about the options, see [Authentication flow](overview-authentication-authorization.md#authentication-flow).
45
47
46
48
The application secret is stored as a slot-sticky [application setting](configure-common.md#configure-app-settings) named `GOOGLE_PROVIDER_AUTHENTICATION_SECRET`. You can see the setting on the **App Settings** tab of your app's **Environment variables** page in the portal. If you want to manage the secret in Azure Key Vault, you can update the setting later to use [Key Vault references](app-service-key-vault-references.md).
Copy file name to clipboardExpand all lines: articles/app-service/configure-authentication-provider-openid-connect.md
+14-11Lines changed: 14 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,21 +16,21 @@ ms.author: cephalin
16
16
17
17
This article shows you how to configure Azure App Service or Azure Functions to use a custom authentication provider that adheres to the [OpenID Connect (OIDC) specification](https://openid.net/connect/). OIDC is an industry standard that many identity providers use. You don't need to understand the details of the specification to use an OIDC identity provider for your app.
18
18
19
-
You can configure your app to use one or more OIDC providers. You must give each OIDC provider a unique friendly name in the configuration. Only one provider can serve as the default redirect target.
19
+
You can configure your app to use one or more OIDC providers. You must give each OIDC provider a unique friendly name in the app configuration. Only one provider can serve as the default redirect target.
20
20
21
21
## <aname="register"> </a>Register your app with the OIDC identity provider
22
22
23
-
Your provider requires you to register your application by specifying a redirect URI in the form `<app-url>/.auth/login/<provider-name>/callback`. Replace `<provider-name>` with the friendly name you give the OpenID provider in Azure.
23
+
Your provider requires you to register your application by specifying a redirect URI in the form `<app-url>/.auth/login/<provider-name>/callback`. Replace `<app-url>` with your app URL and `<provider-name>` with the friendly name you are giving the OpenID provider in Azure.
24
24
25
25
> [!NOTE]
26
26
> The OpenID provider name can't contain a hyphen `-`, because an App Service application setting is created based on this name, and application settings don't support hyphens. You can use an underscore `_` instead.
27
27
28
-
When you register your app, you need to collect a *client ID* and a *client secret* for your application. Your app needs to provide the client secret if you want the user to acquire access tokens using the interactive authorization code flow. If you don't want to acquire access tokens, you don't need to use a secret.
28
+
When you register your app, you need to collect a *client ID* and a *client secret* for your application. Your app needs to provide the client secret if you want users to acquire access tokens using the interactive authorization code flow. If you don't want to acquire access tokens, you don't need to use a secret.
29
29
30
30
> [!IMPORTANT]
31
-
> The **App Secret** value is an important security credential. Don't share this secret with anyone or distribute it within a client application.
31
+
> The client secret value is an important security credential. Don't share this secret with anyone or distribute it within a client application.
32
32
33
-
Each identity provider should provide instructions on how to complete the registration steps. Some providers might require extra steps for their configuration and for using the values that they provide. For example, Apple provides a private key that you use to create a JSON Web Token (JWT), which you provide as the secret in your app configuration. For more information, see [Creating a client secret](https://developer.apple.com/documentation/sign_in_with_apple/generate_and_validate_tokens).
33
+
Each identity provider should provide instructions on how to complete the registration steps. Some providers might require extra steps for their configuration or for using the values that they provide. For example, Apple provides a private key that you use to create a JSON Web Token (JWT), which you enter as the secret in your app configuration. For more information, see [Creating a client secret](https://developer.apple.com/documentation/sign_in_with_apple/generate_and_validate_tokens).
34
34
35
35
You also need the provider's OIDC metadata. This metadata is often exposed in a [configuration metadata document](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderConfig) that you can get at the path formed by appending `/.well-known/openid-configuration` to the provider's issuer URL.
36
36
@@ -43,7 +43,7 @@ If you can't use a configuration metadata document, get the following values sep
43
43
44
44
## <aname="configure"> </a>Add provider information to your application
45
45
46
-
To configure the OpenID Connect provider, follow these steps:
46
+
To configure the OpenID Connect provider in Azure, follow these steps:
47
47
48
48
1. On the [Azure portal](https://portal.azure.com) page for your app, select **Authentication** under **Settings** in the left navigation menu.
49
49
@@ -59,16 +59,19 @@ To configure the OpenID Connect provider, follow these steps:
59
59
60
60
1. Under **App registration**, provide the values you collected earlier for **Client ID** and **Client secret**.
61
61
62
-
1.Leave the rest of the settings at their default values, and select**Add** to finish setting up the identity provider.
62
+
1.Select**Add** to finish setting up the identity provider.
63
63
64
-
Your client secret is stored as an application setting to ensure that it's stored securely. If you want to manage the secret in Azure Key vault, update the setting later to use [Azure Key Vault references](app-service-key-vault-references.md).
64
+
The OIDC provider friendly name appended with **(custom provider)** now appears in the **Identity provider** section of the **Authentication** page. You can edit the provider settings by selecting its pencil icon under **Edit**.
65
+
66
+
The **Authentication settings** section shows settings such as how the application responds to unauthenticated requests. The default selections redirect all requests to sign in with the new provider. You can edit these settings by selecting **Edit** next to **Authentication settings**. To learn more about the options, see [Authentication flow](overview-authentication-authorization.md#authentication-flow).
67
+
68
+
The application secret is stored as a slot-sticky [application setting](configure-common.md#configure-app-settings) named `<friendly_name>_AUTHENTICATION_SECRET`. You can see the setting on the **App Settings** tab of your app's **Environment variables** page in the portal. If you want to manage the secret in Azure Key Vault, you can edit the setting to use [Key Vault references](app-service-key-vault-references.md).
65
69
66
70
>[!NOTE]
67
71
>To add scopes, define the permissions your application has in the provider's registration portal. The app can request scopes that use these permissions at sign-in time.
68
72
>
69
-
>Azure requires `openid`, `profile`, and `email` scopes. Make sure that you configure your app registration in your ID provider with at least these scopes.
70
-
>
71
-
>The `aud` scope must be the same as the configured **Client Id**. You can't configure the allowed audiences for this provider.
73
+
>- Azure requires `openid`, `profile`, and `email` scopes. Make sure that you configure your app registration in your identity provider with at least these scopes.
74
+
>- The `aud` scope must be the same as the configured **Client Id**. You can't configure the allowed audiences for this provider.
0 commit comments