Skip to content

Commit 6baf2fa

Browse files
committed
[b2c][feature] company branding
1 parent f9c7ede commit 6baf2fa

File tree

4 files changed

+52
-1
lines changed

4 files changed

+52
-1
lines changed

articles/active-directory-b2c/customize-ui-overview.md

Lines changed: 52 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ manager: celestedg
88
ms.service: active-directory
99
ms.workload: identity
1010
ms.topic: conceptual
11-
ms.date: 09/25/2019
11+
ms.date: 11/13/2019
1212
ms.author: marsma
1313
ms.subservice: B2C
1414
---
@@ -143,6 +143,57 @@ The following table lists the HTML fragments that Azure AD B2C merges into the `
143143
| Multi-factor authentication | Customers can verify their phone numbers (using text or voice) during sign-up or sign-in. |
144144
| Error | Provides error information to the customer. |
145145

146+
## Company branding (preview)
147+
148+
You can customize your user flow pages with a banner logo, background image, and background color by using Azure Active Directory [Company branding](../active-directory/fundamentals/customize-branding.md).
149+
150+
To customize your user flow pages, you first configure company branding in Azure Active Directory, then you enable it the page layouts of your user flows in Azure AD B2C.
151+
152+
[!INCLUDE [preview note](../../includes/active-directory-b2c-public-preview.md)]
153+
154+
### Configure company branding
155+
156+
Start by configuring company branding in Azure Active Directory within your Azure AD B2C tenant.
157+
158+
1. Sign in to the [Azure portal](https://portal.azure.com).
159+
1. Select the **Directory + subscription** filter in the top menu, and then select the directory that contains your Azure AD B2C tenant.
160+
1. In the left menu, select **Azure Active Directory**. Or, select **All services** and search for and select **Azure Active Directory**.
161+
1. Follow the steps in [Add branding to your organization's Azure Active Directory sign-in page](../active-directory/fundamentals/customize-branding).
162+
163+
In your user flow pages, the background color is shown before the background image is loaded. We recommended that you choose a background color that closely matches the colors in your background image for a smoother loading experience.
164+
165+
Company branding in Azure AD B2C currently supports adding a only background image and banner logo, and specifying a background color. The other properties in the company branding pane, for example those in **Advanced settings**, are **not supported**.
166+
167+
### Enable branding in user flow pages
168+
169+
Once you've configured company branding in Azure Active Directory, enable it for your user flows in Azure AD B2C.
170+
171+
1. In the left menu of the Azure portal, select **Azure AD B2C**.
172+
1. Under **Policies**, select **User flows (policies)**
173+
1. Select the user flow for which you'd like to enable company branding. Company branding is **not supported** for the *Sign in v1* and *Profile editing v1* user flow types.
174+
1. Under **Customize**, select **Page layouts**, and then select the layout you'd like to brand. For example, select **Unified sign up or sign in page**.
175+
1. For the **Page Layout Version (Preview)**, choose version **1.2.0** or above.
176+
1. Select **Save**.
177+
178+
If you'd like to brand all pages in the user flow, set the page layout version for each page layout in the user flow.
179+
180+
![Page layout selection in Azure AD B2C in the Azure portal](media/customize-ui-overview/portal-02-page-layout-select.png)
181+
182+
This example shows a custom logo and background for a *Sign up and sign in* user flow that uses the Ocean Blue template:
183+
184+
![Branded sign-up/sign-in page served by Azure AD B2C](media/customize-ui-overview/template-ocean-blue-branded.png)
185+
186+
### Use company branding assets in custom HTML
187+
188+
To use your company branding assets in custom HTML, add the following tags outside the `<div id="api">` tag:
189+
190+
```HTML
191+
<img data-tenant-branding-background="true" />
192+
<img data-tenant-branding-logo="true" alt="Company Logo" />
193+
```
194+
195+
The image source is replaced with that of the background image and banner logo. As described in [Get started with custom HTML and CSS](#get-started-with-custom-html-and-css), use CSS classes to style and position the assets on the page .
196+
146197
## Localize content
147198

148199
You localize your HTML content by enabling [language customization](active-directory-b2c-reference-language-customization.md) in your Azure AD B2C tenant. Enabling this feature allows Azure AD B2C to forward the OpenID Connect parameter `ui-locales` to your endpoint. Your content server can use this parameter to provide language-specific HTML pages.
156 KB
Loading
58.6 KB
Loading
183 KB
Loading

0 commit comments

Comments
 (0)