You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/active-directory-b2c/custom-policy-rest-api-claims-validation.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,15 +43,15 @@ Complete the steps in [Get started with custom policies](custom-policy-get-start
43
43
44
44
## Prepare a REST API endpoint
45
45
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.".
47
47
48
48
The following JSON code illustrates the data Azure AD B2C will send to your REST API endpoint.
49
49
50
50
```json
51
51
{
52
52
"email": "User email address",
53
53
"language": "Current UI language",
54
-
"membershipId": "User membership ID"
54
+
"loyaltyId": "User loyalty ID"
55
55
}
56
56
```
57
57
@@ -69,11 +69,11 @@ If the validation failed, the REST API must return an HTTP 409 (Conflict), with
69
69
{
70
70
"version": "1.0.1",
71
71
"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."
73
73
}
74
74
```
75
75
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).
77
77
78
78
## Define claims
79
79
@@ -113,7 +113,7 @@ A [Restful technical profile](restful-technical-profile.md) provides support for
113
113
<DisplayName>Check Player Tag Web Hook Azure Function</DisplayName>
0 commit comments