Skip to content

Commit 94f3dec

Browse files
committed
resolve github issues
1 parent f6adeac commit 94f3dec

File tree

4 files changed

+13
-12
lines changed

4 files changed

+13
-12
lines changed

articles/active-directory-b2c/custom-policies-series-call-rest-api.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ ms.service: active-directory
1010

1111
ms.topic: how-to
1212
ms.custom: b2c-docs-improvements, devx-track-js
13-
ms.date: 01/11/2024
13+
ms.date: 01/22/2024
1414
ms.author: kengaderdus
1515
ms.reviewer: yoelh
1616
ms.subservice: B2C
1717

1818

19-
#Customer intent: As a developer using Azure Active Directory B2C custom policy, I want to learn how to call a REST API and handle errors returned by the service, so that I can validate user inputs and issue JWT tokens based on the response.
19+
#Customer intent: As a developer integrating customer-facing apps with Azure Active Directory B2C custom policy, I want to learn how to call a REST API from my custom policy, so that I can send and receive data from external services.
2020

2121
---
2222

@@ -35,7 +35,7 @@ In this article, you learn how to:
3535

3636
## Scenario overview
3737

38-
In [Create branching in user journey by using Azure AD B2C custom policies](custom-policies-series-branch-user-journey.md), users who select *Personal Account* need to provide a valid invitation access code to proceed. We use a static access code, but real world apps don't work this way. If the service that issues the access codes is external to your custom policy, you must make a call to that service, and pass the access code input by the user for validation. If the access code is valid, the service returns an HTTP `200 OK` response, and Azure AD B2C issues JWT token. Otherwise, the service returns an HTTP `409 Conflict` response, and the user must reenter an access code.
38+
In [Create branching in user journey by using Azure AD B2C custom policies](custom-policies-series-branch-user-journey.md), users who select *Personal Account* need to provide a valid invitation access code to proceed. We use a static access code, but real world apps don't work this way. If the service that issues the access codes is external to your custom policy, you must make a call to that service, and pass the access code input by the user for validation. If the access code is valid, the service returns an HTTP `200 OK` response, and Azure AD B2C issues JWT token. Otherwise, the service returns an HTTP 4xx response, and the user must reenter an access code.
3939

4040
:::image type="content" source="media/custom-policies-series-call-rest-api/screenshot-of-call-rest-api-call.png" alt-text="A flowchart of calling a R E S T A P I.":::
4141

@@ -141,6 +141,7 @@ You need to deploy an app, which serves as your external app. Your custom policy
141141
"moreInfo": "https://docs.microsoft.com/en-us/azure/active-directory-b2c/string-transformations"
142142
}
143143
```
144+
Your REST service can return HTTP 4xx status code, but the value of `status` in the JSON response must be `409`.
144145
145146
At this point, you're ready to deploy your Node.js app.
146147

articles/active-directory-b2c/customize-ui-with-html.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,17 @@
22
title: Customize the user interface with HTML templates
33
titleSuffix: Azure AD B2C
44
description: Learn how to customize the user interface with HTML templates for your applications that use Azure Active Directory B2C.
5-
65
author: kengaderdus
76
manager: CelesteDG
8-
97
ms.service: active-directory
10-
118
ms.topic: how-to
12-
ms.date: 01/11/2024
9+
ms.date: 01/22/2024
1310
ms.author: kengaderdus
1411
ms.subservice: B2C
1512
zone_pivot_groups: b2c-policy-type
1613

1714

18-
#Customer intent: As a developer customizing the user interface in Azure Active Directory B2C, I want to know how to customize the default pages and host my own HTML and CSS files, so that I can provide a branded and seamless user experience in my application.
15+
#Customer intent: As a developer integrating apps with Azure Active Directory B2C, I want to learn how to customize the default user interfaces by using my own HTML, CSS files and JavaScript, so that I can provide a branded and seamless user experience in my application.
1916

2017
---
2118

@@ -330,6 +327,9 @@ To configure UI customization, copy the **ContentDefinition** and its child elem
330327

331328
1. Save the extensions file.
332329

330+
1. [Enable JavaScript](javascript-and-page-layout.md?pivots=b2c-custom-policy#enable-javascript)
331+
332+
333333
### 5. Upload and test your updated custom policy
334334

335335
#### 5.1 Upload the custom policy

articles/active-directory-b2c/relyingparty.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ manager: CelesteDG
88
ms.service: active-directory
99

1010
ms.topic: reference
11-
ms.date: 01/11/2024
11+
ms.date: 01/22/2024
1212
ms.author: kengaderdus
1313
ms.subservice: B2C
1414

articles/active-directory-b2c/restful-technical-profile.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ manager: CelesteDG
99
ms.service: active-directory
1010

1111
ms.topic: reference
12-
ms.date: 01/11/2024
12+
ms.date: 01/22/2024
1313
ms.author: kengaderdus
1414
ms.subservice: B2C
1515

1616

17-
#Customer intent: As a developer integrating a RESTful service with Azure Active Directory B2C, I want to define a technical profile, so that I can send and receive data from the REST API using input and output claims collections.
17+
#Customer intent: As a developer customer-facing apps with Azure Active Directory B2C, I want to learn how to define a REST technical profile, so that I can send and receive data from external services.
1818

1919
---
2020

@@ -263,7 +263,7 @@ Your REST API may need to return an error message, such as 'The user was not fou
263263
| Attribute | Required | Description |
264264
| --------- | -------- | ----------- |
265265
| version | Yes | Your REST API version. For example: 1.0.1 |
266-
| status | Yes | An HTTP response status codes-like number, and must be 409 |
266+
| status | Yes | An HTTP response status codes-like number, and must be 409. Your REST service can return an HTTP 4XX status code, but the value of the `status` filed in the JSON-formatted response body must be `409`. |
267267
| code | No | An error code from the RESTful endpoint provider, which is displayed when `DebugMode` is enabled. |
268268
| requestId | No | A request identifier from the RESTful endpoint provider, which is displayed when `DebugMode` is enabled. |
269269
| userMessage | Yes | An error message that is shown to the user. |

0 commit comments

Comments
 (0)