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/integer-transformations.md
+132-3Lines changed: 132 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ manager: celestedg
9
9
ms.service: active-directory
10
10
ms.workload: identity
11
11
ms.topic: reference
12
-
ms.date: 09/10/2018
12
+
ms.date: 07/21/2021
13
13
ms.author: mimart
14
14
ms.subservice: B2C
15
15
---
@@ -20,14 +20,143 @@ ms.subservice: B2C
20
20
21
21
This article provides examples for using the integer claims transformations of the Identity Experience Framework schema in Azure Active Directory B2C (Azure AD B2C). For more information, see [ClaimsTransformations](claimstransformations.md).
22
22
23
+
## AdjustNumber
24
+
25
+
Increases or decreases a numeric claim and return a new claim.
26
+
27
+
| Item | TransformationClaimType | Data Type | Notes |
| InputClaim | inputClaim | int | The claim type, which contains the number to increase or decrease. If the `inputClaim` claim value is null, the default of 0 is used. |
30
+
| InputParameter | Operator | string | Possible values: `INCREMENT` (default), or `DECREMENT`.|
31
+
| OutputClaim | outputClaim | int | The claim type that is produced after this claims transformation has been invoked. |
32
+
33
+
Use this claim transformation to increase or decrease a numeric claim value.
| InputClaim | inputClaim | int | The first numeric claim to compare whether it is greater, lesser, equal, or not equal than the second number. Null value throws an exception. |
75
+
| InputParameter | CompareToValue | boolean | The second number to compare whether it is greater, lesser, equal, or not equal than the first number. |
| InputParameter | throwError | boolean | Specifies whether this assertion should throw an error if the comparison result is `true`. Possible values: `true` (default), or `false`. <br /> <br />When set to `true` (Assertion mode), and the comparison result is `true`, an exception will be thrown. When set to `false` (Evaluation mode), the result is a new boolean claim type with a value of `true`, or `false`.|
78
+
| OutputClaim | outputClaim | boolean | If `ThrowError` is set to `false`, this output claim contains `true`, or `false` according to the comparison result. |
79
+
80
+
### Assertion mode
81
+
82
+
When `throwError` input parameter is `true` (default), the **AssertNumber** claims transformation is always executed from a [validation technical profile](validation-technical-profile.md) that is called by a [self-asserted technical profile](self-asserted-technical-profile.md).
83
+
84
+
The **AssertNumberError** self-asserted technical profile metadata controls the error message that the technical profile presents to the user. The error messages can be [localized](localization-string-ids.md#claims-transformations-error-messages).
<ItemKey="AssertNumberError">You've reached the maximum logon attempts</Item>
90
+
</Metadata>
91
+
...
92
+
</TechnicalProfile>
93
+
```
94
+
95
+
For more information how to call the claims transformation in an assertion mode, see [AssertStringClaimsAreEqual](string-transformations.md#assertstringclaimsareequal), [AssertBooleanClaimIsEqualToValue](boolean-transformations.md#assertbooleanclaimisequaltovalue), and [AssertDateTimeIsGreaterThan](date-transformations.md#assertdatetimeisgreaterthan) claims transformations.
96
+
97
+
### Assertion mode example
98
+
99
+
The following example asserts the number of attempts is over five. The claims transformation throws an error according to the comparison result.
The following example evaluates whether the number of attempts is over five. The output claim contains a boolean value according to the comparison result. The claims transformation will not throw an error.
0 commit comments