Skip to content

Commit 49bbace

Browse files
committed
Change to EasyAuth V2 setting
1 parent ab6c12a commit 49bbace

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

articles/app-service/configure-authentication-customize-sign-in-out.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,23 @@ az webapp config appsettings set --name <app_name> --resource-group <group_name>
125125

126126
Both Microsoft Account and Azure Active Directory lets you sign in from multiple domains. For example, Microsoft Account allows _outlook.com_, _live.com_, and _hotmail.com_ accounts. Azure AD allows any number of custom domains for the sign-in accounts. However, you may want to accelerate your users straight to your own branded Azure AD sign-in page (such as `contoso.com`). To suggest the domain name of the sign-in accounts, follow these steps.
127127

128-
In [https://resources.azure.com](https://resources.azure.com), navigate to **subscriptions** > **_\<subscription\_name_** > **resourceGroups** > **_\<resource\_group\_name>_** > **providers** > **Microsoft.Web** > **sites** > **_\<app\_name>_** > **config** > **authsettings**.
129-
130-
Click **Edit**, modify the following property, and then click **Put**. Be sure to replace _\<domain\_name>_ with the domain you want.
128+
1. In [https://resources.azure.com](https://resources.azure.com), At the top of the page, select **Read/Write**.
129+
2. In the left browser, navigate to **subscriptions** > **_\<subscription-name_** > **resourceGroups** > **_\<resource-group-name>_** > **providers** > **Microsoft.Web** > **sites** > **_\<app-name>_** > **config** > **authsettingsV2**.
130+
3. Click **Edit**.
131+
4. Add a `loginParameters` array with a `domain_hint` item.
131132

132133
```json
133-
"additionalLoginParams": ["domain_hint=<domain_name>"]
134+
"identityProviders": {
135+
"azureActiveDirectory": {
136+
"login": {
137+
"loginParameters": ["domain_hint=<domain-name>"],
138+
}
139+
}
140+
}
134141
```
135142

143+
5. Click **Put**.
144+
136145
This setting appends the `domain_hint` query string parameter to the login redirect URL.
137146

138147
> [!IMPORTANT]

0 commit comments

Comments
 (0)