Skip to content

Commit 0558893

Browse files
authored
Update custom-policy-rest-api-claims-validation.md
Pointing to the new GitHub repo, ServiceUrl and changing from membership ID to loyalty ID
1 parent 92784b5 commit 0558893

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

articles/active-directory-b2c/custom-policy-rest-api-claims-validation.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ Complete the steps in [Get started with custom policies](custom-policy-get-start
4343

4444
## Prepare a REST API endpoint
4545

46-
For this walkthrough, you should have a REST API that validates whether an email address is registered in your back-end system with a membership ID. If registered, the REST API should return a registration promotion code, which the customer can use to buy goods within your application. Otherwise, the REST API should return an HTTP 409 error message: "Membership ID '{membership ID}' is not associated with '{email}' email address.".
46+
For this walkthrough, you should have a REST API that validates whether an email address is registered in your back-end system with a loyalty ID. If registered, the REST API should return a registration promotion code, which the customer can use to buy goods within your application. Otherwise, the REST API should return an HTTP 409 error message: "Loyalty ID '{loyalty ID}' is not associated with '{email}' email address.".
4747

4848
The following JSON code illustrates the data Azure AD B2C will send to your REST API endpoint.
4949

5050
```json
5151
{
5252
"email": "User email address",
5353
"language": "Current UI language",
54-
"membershipId": "User membership ID"
54+
"loyaltyId": "User loyalty ID"
5555
}
5656
```
5757

@@ -69,11 +69,11 @@ If the validation failed, the REST API must return an HTTP 409 (Conflict), with
6969
{
7070
"version": "1.0.1",
7171
"status": 409,
72-
"userMessage": "Membership ID '1234' is not associated with '[email protected]' email address."
72+
"userMessage": "LoyaltyId ID '1234' is not associated with '[email protected]' email address."
7373
}
7474
```
7575

76-
The setup of the REST API endpoint is outside the scope of this article. We have created an [Azure Functions](https://docs.microsoft.com/azure/azure-functions/functions-reference) sample. You can access the complete Azure function code at [GitHub](https://github.com/Azure-Samples/active-directory-b2c-advanced-policies/tree/master/AzureFunctionsSamples).
76+
The setup of the REST API endpoint is outside the scope of this article. We have created an [Azure Functions](https://docs.microsoft.com/azure/azure-functions/functions-reference) sample. You can access the complete Azure function code at [GitHub](https://github.com/azure-ad-b2c/rest-api/tree/master/source-code/azure-function).
7777

7878
## Define claims
7979

@@ -113,7 +113,7 @@ A [Restful technical profile](restful-technical-profile.md) provides support for
113113
<DisplayName>Check Player Tag Web Hook Azure Function</DisplayName>
114114
<Protocol Name="Proprietary" Handler="Web.TPEngine.Providers.RestfulProvider, Web.TPEngine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
115115
<Metadata>
116-
<Item Key="ServiceUrl">https://wingtipb2cfuncs.azurewebsites.net/api/CheckPlayerTagWebHook?code=L/05YRSpojU0nECzM4Tp3LjBiA2ZGh3kTwwp1OVV7m0SelnvlRVLCg==</Item>
116+
<Item Key="ServiceUrl">https://your-account.azurewebsites.net/api/ValidateProfile?code=your-code</Item>
117117
<Item Key="SendClaimsIn">Body</Item>
118118
<!-- Set AuthenticationType to Basic or ClientCertificate in production environments -->
119119
<Item Key="AuthenticationType">None</Item>

0 commit comments

Comments
 (0)