Skip to content

Commit 85c989d

Browse files
authored
Merge pull request #221217 from MicrosoftDocs/main
12/12 PM Publish
2 parents 52b5460 + 888471d commit 85c989d

File tree

160 files changed

+2124
-872
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

160 files changed

+2124
-872
lines changed

.openpublishing.publish.config.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,12 @@
152152
"branch": "master",
153153
"branch_mapping": {}
154154
},
155+
{
156+
"path_to_root": "functions-azure-product",
157+
"url": "https://github.com/Azure/Azure-Functions",
158+
"branch": "main",
159+
"branch_mapping": {}
160+
},
155161
{
156162
"path_to_root": "functions-pytorch",
157163
"url": "https://github.com/Azure-Samples/functions-python-pytorch-tutorial",
Lines changed: 37 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,21 @@
11
---
22
title: Tutorial to configure Azure Active Directory B2C with Cloudflare Web Application Firewall
33
titleSuffix: Azure AD B2C
4-
description: Tutorial to configure Azure Active Directory B2C with Cloudflare Web application firewall to protect your applications from malicious attacks
4+
description: Tutorial to configure Azure Active Directory B2C with Cloudflare Web application firewall and protect applications from malicious attacks
55
services: active-directory-b2c
66
author: gargi-sinha
7-
manager: CelesteDG
7+
manager: martinco
88
ms.reviewer: kengaderdus
9-
109
ms.service: active-directory
1110
ms.workload: identity
1211
ms.topic: how-to
13-
ms.date: 09/13/2022
12+
ms.date: 12/6/2022
1413
ms.author: gasinh
1514
ms.subservice: B2C
1615
---
16+
# Tutorial: Configure Cloudflare Web Application Firewall with Azure Active Directory B2C
1717

18-
# Tutorial: Configure Cloudflare with Azure Active Directory B2C
19-
20-
In this sample tutorial, learn how to enable [Cloudflare Web Application Firewall (WAF)](https://www.cloudflare.com/waf/) solution for Azure Active Directory (AD) B2C tenant with custom domain. Cloudflare WAF helps organization protect against malicious attacks that aim to exploit vulnerabilities such as SQLi, and XSS.
18+
In this tutorial, you can learn how to configure the [Cloudflare Web Application Firewall (WAF)](https://www.cloudflare.com/waf/) solution for Azure Active Directory B2C (Azure AD B2C) tenant with custom domain. Use Cloudflare WAF to help protect organizations from malicious attacks that can exploit vulnerabilities such as SQL Injection, and cross-site scripting (XSS).
2119

2220
>[!NOTE]
2321
>This feature is in public preview.
@@ -26,74 +24,71 @@ In this sample tutorial, learn how to enable [Cloudflare Web Application Firewal
2624

2725
To get started, you'll need:
2826

29-
- An Azure subscription. If you don't have a subscription, you can get a [free account](https://azure.microsoft.com/free/).
30-
31-
- [An Azure AD B2C tenant](tutorial-create-tenant.md) that is linked to your Azure subscription.
32-
33-
- A [Cloudflare](https://dash.cloudflare.com/sign-up) account.
27+
- An Azure subscription
28+
- If you don't have one, you can get an [Azure free account](https://azure.microsoft.com/free/)
29+
- [An Azure AD B2C tenant](tutorial-create-tenant.md) linked to your Azure subscription
30+
- A [Cloudflare](https://dash.cloudflare.com/sign-up) account
3431

3532
## Scenario description
3633

3734
Cloudflare WAF integration includes the following components:
3835

39-
- **Azure AD B2C Tenant** – The authorization server, responsible for verifying the user’s credentials using the custom policies defined in the tenant. It's also known as the identity provider.
40-
41-
- [**Azure Front Door**](../frontdoor/front-door-overview.md) – Responsible for enabling custom domains for Azure B2C tenant. All traffic from Cloudflare WAF will be routed to Azure Front Door before arriving at Azure AD B2C tenant.
42-
43-
- **Cloudflare** – The web application firewall, which manages all traffic that is sent to the authorization server.
36+
- **Azure AD B2C tenant** – The authorization server that verifies user credentials using the custom policies defined in the tenant. It's known as the identity provider
37+
- [**Azure Front Door**](../frontdoor/front-door-overview.md) – Enables custom domains for Azure B2C tenant. Traffic from Cloudflare WAF is routed to Azure Front Door before arriving at Azure AD B2C tenant.
38+
- **Cloudflare** – The web application firewall that manages traffic sent to the authorization server
4439

4540
## Integrate with Azure AD B2C
4641

47-
To use custom domains in Azure AD B2C, it's required to use custom domain feature provided by Azure Front Door. Learn how to [enable Azure AD B2C custom domains](./custom-domain.md?pivots=b2c-user-flow).
42+
For custom domains in Azure AD B2C, use the custom domain feature in Azure Front Door. Learn how to [enable Azure AD B2C custom domains](./custom-domain.md?pivots=b2c-user-flow).
4843

49-
After custom domain for Azure AD B2C is successfully configured using Azure Front Door, [test the custom domain](./custom-domain.md?pivots=b2c-custom-policy#test-your-custom-domain) before proceeding further.
44+
After a custom domain for Azure AD B2C is configured using Azure Front Door, [test the custom domain](./custom-domain.md?pivots=b2c-custom-policy#test-your-custom-domain) before proceeding.
5045

51-
## Onboard with Cloudflare
46+
## Create a Cloudflare account
5247

53-
[Sign-up](https://dash.cloudflare.com/sign-up) and create a Cloudflare account. To enable WAF, a minimum of [Pro SKU](https://www.cloudflare.com/plans/) is required.
48+
On cloudflare.com, you can [create an account](https://dash.cloudflare.com/sign-up). To enable WAF, on [Application Services]([https://www.cloudflare.com/plans/](https://www.cloudflare.com/plans/#price-matrix) select **Pro**, which is required.
5449

5550
### Configure DNS
5651

57-
1. To enable WAF for a domain, you must **turn-on the proxy setting** from the DNS console for the CNAME entry as shown in the example for domain id.contosobank.co.uk.
52+
1. To enable WAF for a domain, in the DNS console for the CNAME entry, turn on the proxy setting from the DNS console for the CNAME entry as shown.
5853

59-
![Image shows how to select proxy settings](./media/partner-cloudflare/select-proxy-settings.png)
54+
![Screenshot of proxy settings.](./media/partner-cloudflare/select-proxy-settings.png)
6055

61-
1. Toggle the **Proxy status** option available under the DNS pane.
56+
2. Under the DNS pane, toggle the **Proxy status** option to **Proxied**. It turns orange.
6257

63-
1. After you switch it to **Proxied**, it would turn orange. The final setting should look like:
58+
The settings appear in the following image.
6459

65-
![Image shows how to select proxied](./media/partner-cloudflare/select-proxied.png)
60+
![Screenshot of proxied status.](./media/partner-cloudflare/select-proxied.png)
6661

67-
### Configure WAF
62+
### Configure the Web Application Firewall
6863

69-
[Configure WAF](https://www.cloudflare.com/waf/) in your Cloudflare settings.
64+
Go to your Cloudflare settings, and use the Cloudflare content to [configure the WAF](https://www.cloudflare.com/waf/) and learn about other security tools.
7065

7166
### Configure firewall rule
7267

73-
Add, update, or remove firewall rules using the firewall option available in the top pane of the console. For example, following firewall setting enables CAPTCHA for all incoming requests to *contosobank.co.uk* domain before the request is sent to Azure Front Door. Learn more about [setting firewall rules](https://support.cloudflare.com/hc/articles/360016473712-Cloudflare-Firewall-Rules).
74-
75-
![Image shows how to enforce captcha](./media/partner-cloudflare/configure-firewall-rule.png)
68+
In the top pane of the console, use the firewall option to add, update, or remove firewall rules. For example, the following firewall setting enables CAPTCHA for incoming requests to *contosobank.co.uk* domain before the request goes to Azure Front Door.
7669

77-
### Test the settings
70+
![Screenshot of enforcing captcha.](./media/partner-cloudflare/configure-firewall-rule.png)
7871

79-
1. After saving the rule, it's required to complete CAPTCHA every time access to custom domain is requested.
72+
Learn more: [Cloudflare Firewall Rules](https://support.cloudflare.com/hc/articles/360016473712-Cloudflare-Firewall-Rules)
8073

81-
![Image shows cloudflare waf enforce CAPTCHA](./media/partner-cloudflare/enforce-captcha.png)
74+
### Test the settings
8275

83-
> [!NOTE]
84-
> Cloudflare also provides various [**other options**](https://support.cloudflare.com/hc/en-us/articles/200172706-Configuring-Custom-Pages-Error-and-Challenge-) to create customized block pages.
76+
1. Complete CAPTCHA when access to the custom domain is requested.
8577

86-
2. User is taken to Azure AD B2C policy after successfully completing CAPTCHA.
78+
![Screenshot of Cloudflare WAF enforce CAPTCHA.](./media/partner-cloudflare/enforce-captcha.png)
8779

88-
![Image shows Azure AD B2C policy login](./media/partner-cloudflare/azure-ad-b2c-policy.png)
80+
> [!NOTE]
81+
> Cloudflare has functionality to customize block pages. See, [Configuring Custom Pages (Error and Challenge)](https://support.cloudflare.com/hc/en-us/articles/200172706-Configuring-Custom-Pages-Error-and-Challenge-).
8982
83+
2. The Azure AD B2C policy sign-in dialog appears.
9084

91-
## Additional resources
85+
![Screenshot of Azure AD B2C policy sign-in.](./media/partner-cloudflare/azure-ad-b2c-policy.png)
9286

93-
- [Troubleshoot Cloudflare custom page issues](https://support.cloudflare.com/hc/en-us/articles/200172706-Configuring-Custom-Pages-Error-and-Challenge-#5QWV2KVjLnaAQ8L4tjiguw)
87+
## Resources
9488

89+
- Cloudflare: [Troubleshoot common custom pages issues](https://support.cloudflare.com/hc/en-us/articles/200172706-Configuring-Custom-Pages-Error-and-Challenge-#5QWV2KVjLnaAQ8L4tjiguw)
9590
- [Get started with custom policies in Azure AD B2C](./tutorial-create-user-flows.md?pivots=b2c-custom-policy&tabs=applications)
9691

9792
## Next steps
98-
99-
- [Configure a custom domain in Azure AD B2C](./custom-domain.md?pivots=b2c-user-flow)
93+
94+
[Configure a custom domain in Azure AD B2C](./custom-domain.md?pivots=b2c-user-flow)

0 commit comments

Comments
 (0)