Skip to content

Commit a51fb17

Browse files
committed
make http call review updates
1 parent a9965f4 commit a51fb17

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ You need to deploy an app, which will serve as your external app. Your custom po
103103
You can observe that when a user submits a wrong access code, you can return an error directly from the REST API. Custom policies allow you to return an HTTP 4xx error message, such as, 400 (bad request), or 409 (conflict) response status code with a response JSON body formatted as shown in `errorResponse` variable. The source of the accessCode in the app could be read from a database. Learn more about [Returning validation error message](restful-technical-profile.md#returning-validation-error-message).
104104

105105
1. To test the app works as expected, use the following steps:
106-
1. In your terminal, run the `node index.js` command to start your app server on port `80`.
106+
1. In your terminal, run the `node index.js` command to start your app server.
107107
1. To make a POST request similar to the one shown below, you can use an HTTP client such as [Microsoft PowerShell](https://learn.microsoft.com/powershell/scripting/overview) or [Postman](https://www.postman.com/):
108108

109109
```http
@@ -154,10 +154,10 @@ You can test the app you've deployed by using an HTTP client such as [Microsoft
154154

155155
## Step 2 - Call the REST API
156156

157-
Now that your app is running, you need to make an HTTP call from your custom policy. Azure AD B2C custom policy provides a [RESTful Technical Profile](restful-technical-profile.md#returning-validation-error-message) that you use to call an external service.
157+
Now that your app is running, you need to make an HTTP call from your custom policy. Azure AD B2C custom policy provides a [RESTful technical profile](restful-technical-profile.md#returning-validation-error-message) that you use to call an external service.
158158

159159

160-
### Step 2.1 - Define a RESTful Technical profile
160+
### Step 2.1 - Define a RESTful technical profile
161161

162162
In your `ContosoCustomPolicy.XML` file, locate the `ClaimsProviders` section, and define a new RESTful technical profile by using the following code:
163163

@@ -194,7 +194,7 @@ From the protocol, you can observe that we configure the Technical Profile to us
194194

195195
- The *PartnerClaimType* attribute in the `InputClaim` specifies how you'll receive your data in the API.
196196
197-
### Step 2.2 - Update Validation Technical Profile
197+
### Step 2.2 - Update validation technical profile
198198
199199
In [Create branching in user journey by using Azure AD B2C custom policy](custom-policies-series-branch-in-user-journey.md), you validated the *accessCode* by using a Claims Transformation. In this article, you validate the *accessCode* by making an HTTP call to an external service. So, you'll need to update your custom policy to reflect the new approach.
200200

0 commit comments

Comments
 (0)