Skip to content

Commit 35a1ab6

Browse files
committed
Images + copy updates
1 parent 88413fa commit 35a1ab6

File tree

7 files changed

+43
-22
lines changed

7 files changed

+43
-22
lines changed

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

Lines changed: 43 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Customize the user interface in user flows in Azure Active Directory B2C
2+
title: Customize the user interface in Azure Active Directory B2C
33
description: Learn how to customize the user interface for your applications that use Azure Active Directory B2C.
44
services: active-directory-b2c
55
author: mmacy
@@ -13,72 +13,79 @@ ms.author: marsma
1313
ms.subservice: B2C
1414
---
1515

16-
# Customize the user flow user interface in Azure Active Directory B2C
16+
# Customize the user interface in Azure Active Directory B2C
1717

18-
Branding and customizing the user interface that Azure Active Directory B2C (Azure AD B2C) shows to your customers helps provide a seamless user experience in your application. These experiences include signing up, signing in, profile editing, and password resetting. This article provides information to help you customize the user interface (UI) of your user flows.
18+
Branding and customizing the user interface that Azure Active Directory B2C (Azure AD B2C) displays to your customers helps provide a seamless user experience in your application. These experiences include signing up, signing in, profile editing, and password resetting. This article introduces the methods of user interface (UI) customization for both user flows and custom policies.
1919

2020
## UI customization in different scenarios
2121

2222
There are several ways to customize the UI of the user experiences your application, each appropriate for different scenarios.
2323

2424
### User flows
2525

26-
If you use user flows, you can change the look of your user flow pages by using built-in [page layout templates](#page-layout-templates), or by using your own HTML and CSS.
26+
If you use [user flows](active-directory-b2c-reference-policies.md), you can change the look of your user flow pages by using built-in *page layout templates*, or by using your own HTML and CSS. Both methods are discussed later in this article.
2727

2828
You use the [Azure portal](tutorial-customize-ui.md) to configure the UI customization for user flows.
2929

3030
### Custom policies
3131

3232
If you're using [custom policies](active-directory-b2c-overview-custom.md) to provide sign-up or sign-in, password reset, or profile-editing in your application, use [policy files to customize the UI](active-directory-b2c-ui-customization-custom.md).
3333

34-
If you need to provide dynamic content based on a customer's decision, use custom policies that can [change page content dynamically](active-directory-b2c-ui-customization-custom-dynamic.md) depending on a parameter that's sent in a query string. For example, the background image on the Azure AD B2C sign-up or sign-in page changes, based on a parameter that you pass from your web or mobile application.
34+
If you need to provide dynamic content based on a customer's decision, use custom policies that can [change page content dynamically](active-directory-b2c-ui-customization-custom-dynamic.md) depending on a parameter that's sent in a query string. For example, you can change the background image on the Azure AD B2C sign-up or sign-in page based on a parameter that you pass from your web or mobile application.
3535

3636
### JavaScript
3737

38-
You can enable JavaScript client-side code in both [user flows](user-flow-javascript-overview.md) and [custom policies](page-layout.md).
38+
You can enable client-side JavaScript code in both [user flows](user-flow-javascript-overview.md) and [custom policies](page-layout.md).
3939

40-
### Sign-in only UI customization
40+
### Sign in-only UI customization
4141

4242
If you're providing sign-in only, along with its accompanying password reset page and verification emails, use the same customization steps that are used for an [Azure AD sign-in page](../active-directory/fundamentals/customize-branding.md).
4343

4444
If customers try to edit their profile before signing in, they're redirected to a page that you customize by using the same steps that are used for customizing the Azure AD sign-in page.
4545

4646
## Page layout templates
4747

48-
User flows provide three built-in templates you can choose from to give your user experience pages a professional look. These layout templates can also and serve as starting point for your own customization.
48+
User flows provide several built-in templates you can choose from to give your user experience pages a professional look. These layout templates can also and serve as starting point for your own customization.
4949

50-
In the left menu, under **Customize**, select **Page layouts**. Then select **Template (Preview)**.
50+
In the left menu, under **Customize**, select **Page layouts**. Then select **Template**.
5151

52-
![Template selection drop-down in user flow page of Azure portal](media/customize-ui-overview/template.png)
52+
![Template selection drop-down in user flow page of Azure portal](media/customize-ui-overview/template-selection.png)
5353

54-
Select a template from the list. For example, the **Ocean Blue** template applies the following layout to your user flow pages:
54+
Select a template from the list. Examples of each of the available templates' sign-in pages appear below.
5555

56-
![Example of the Ocean Blue template rendered on sign up sign in page](media/customize-ui-overview/ocean-blue.png)
56+
| | | |
57+
|-|-|-|
58+
|![Example of the Ocean Blue template rendered on sign up sign in page](media/customize-ui-overview/template-ocean-blue.png)|![Example of the Slate Gray template rendered on sign up sign in page](media/customize-ui-overview/template-slate-gray.png)|![Example of the Classic template rendered on sign up sign in page](media/customize-ui-overview/template-classic.png)|
59+
|||
5760

5861
When you choose a template, the selected layout is applied to all pages in your user flow, and the URI for each page is visible in the **Custom page URI** field.
5962

6063
## Custom HTML and CSS
6164

62-
Azure AD B2C runs code in your customer's browser and uses a modern approach called [Cross-Origin Resource Sharing (CORS)](https://www.w3.org/TR/cors/). At runtime, content is loaded from a URL that you specify in a your user flow or custom policy. Each page in the user experience loads its content from a URL you specify for that page. After content is loaded from your URL, it's merged with an HTML fragment inserted by Azure AD B2C, and then the page is displayed to your customer.
65+
Azure AD B2C runs code in your customer's browser and uses a modern approach called [Cross-Origin Resource Sharing (CORS)](https://www.w3.org/TR/cors/).
66+
67+
At runtime, content is loaded from a URL that you specify in a your user flow or custom policy. Each page in the user experience loads its content from the URL you specify for that page. After content is loaded from your URL, it's merged with an HTML fragment inserted by Azure AD B2C, and then the page is displayed to your customer.
6368

6469
Review the following guidance before using your own HTML and CSS files to customize the UI:
6570

6671
- Azure AD B2C merges HTML content into your pages. Don't copy and try to change the default content that Azure AD B2C provides. It's best to build your HTML content from scratch and use the default content as reference.
6772
- JavaScript can now be included in your custom content.
6873
- Supported browser versions are:
69-
- Internet Explorer 11, 10 and Microsoft Edge
74+
- Internet Explorer 11, 10, and Microsoft Edge
7075
- Limited support for Internet Explorer 9 and 8
7176
- Google Chrome 42.0 and above
7277
- Mozilla Firefox 38.0 and above
73-
- Make sure that you don't include form tags in your HTML because it interferes with the POST operations generated by the injected HTML from Azure AD B2C.
78+
- Don't include form tags in your HTML. Form tags interfere with the POST operations generated by the HTML injected by Azure AD B2C.
7479

7580
### Where do I store UI content?
7681

77-
When using your own HTML and CSS files to customize the UI, you can host your UI content anywhere, such as on [Azure Blob storage](../storage/blobs/storage-blobs-introduction.md), web servers, CDNs, AWS S3, or file sharing systems. The important point is that you host the content on a publicly available HTTPS endpoint with CORS enabled. You must use an absolute URL when you specify it in your content.
82+
When using your own HTML and CSS files to customize the UI, you can host your UI content on any publicly available HTTPS endpoint that supports CORS. For example, [Azure Blob storage](../storage/blobs/storage-blobs-introduction.md), web servers, CDNs, AWS S3, or file sharing systems.
83+
84+
The important point is that you host the content on a publicly available HTTPS endpoint with CORS enabled. You must use an absolute URL when you specify it in your content.
7885

79-
## How do I get started?
86+
## Get started with custom HTML and CSS
8087

81-
You do the following to customize the UI:
88+
Get started using your own HTML and CSS in your user experience pages by following these guidelines.
8289

8390
- Create well-formed HTML content with an empty `<div id="api"></div>` element located somewhere in the `<body>`. This element marks where the Azure AD B2C content is inserted. The following example shows a minimal page:
8491

@@ -122,7 +129,7 @@ You do the following to customize the UI:
122129
}
123130
```
124131

125-
- Create or edit a policy to use the content that you created.
132+
- Create or edit a user flow or custom policy to use the content that you created.
126133

127134
The following table lists the HTML fragments that Azure AD B2C merges into the `<div id="api"></div>` element located in your content.
128135

@@ -135,15 +142,29 @@ The following table lists the HTML fragments that Azure AD B2C merges into the `
135142
| Multi-factor authentication | Customers can verify their phone numbers (using text or voice) during sign-up or sign-in. |
136143
| Error | Provides error information to the customer. |
137144

138-
## How do I localize content?
145+
## Localize content
139146

140147
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.
141148

142-
Content can be pulled from different places based on the locale that's used. In your CORS-enabled endpoint, you set up a folder structure to host content for specific languages. You'll call the right one if you use the wildcard value {Culture:RFC5646}. For example, your custom page URI might look like `https://contoso.blob.core.windows.net/{Culture:RFC5646}/myHTML/unified.html`. You can load the page in French by pulling content from `https://contoso.blob.core.windows.net/fr/myHTML/unified.html`
149+
Content can be pulled from different places based on the locale that's used. In your CORS-enabled endpoint, you set up a folder structure to host content for specific languages. You'll call the right one if you use the wildcard value `{Culture:RFC5646}`.
150+
151+
For example, your custom page URI might look like:
152+
153+
```HTTP
154+
https://contoso.blob.core.windows.net/{Culture:RFC5646}/myHTML/unified.html
155+
```
156+
157+
You can load the page in French by pulling content from:
158+
159+
```HTTP
160+
https://contoso.blob.core.windows.net/fr/myHTML/unified.html
161+
```
143162

144163
## Examples
145164

146-
For customization examples, download and review these [sample template files](https://github.com/azureadquickstarts/b2c-azureblobstorage-client/archive/master.zip).
165+
You can find several sample template files in the [B2C-AzureBlobStorage-Client](https://github.com/azureadquickstarts/b2c-azureblobstorage-client) repository on GitHub.
166+
167+
The sample HTML and CSS files in the templates are located in the [/sample_templates](https://github.com/AzureADQuickStarts/B2C-AzureBlobStorage-Client/tree/master/sample_templates) directory.
147168

148169
## Next steps
149170

Binary file not shown.
56.4 KB
Loading
22.4 KB
Loading
46.9 KB
Loading
16.9 KB
Loading
Binary file not shown.

0 commit comments

Comments
 (0)