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/predicates.md
+14-2Lines changed: 14 additions & 2 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: 02/24/2020
12
+
ms.date: 03/30/2020
13
13
ms.author: mimart
14
14
ms.subservice: B2C
15
15
---
@@ -41,7 +41,7 @@ The **Predicate** element contains the following attributes:
41
41
| Attribute | Required | Description |
42
42
| --------- | -------- | ----------- |
43
43
| Id | Yes | An identifier that's used for the predicate. Other elements can use this identifier in the policy. |
44
-
| Method | Yes | The method type to use for validation. Possible values: **IsLengthRange**, **MatchesRegex**, **IncludesCharacters**, or **IsDateRange**. The **IsLengthRange** value checks whether the length of a string claim value is within the range of minimum and maximum parameters specified. The **MatchesRegex** value checks whether a string claim value matches a regular expression. The **IncludesCharacters** value checks whether a string claim value contains a character set. The **IsDateRange** value checks whether a date claim value is between a range of minimum and maximum parameters specified.|
44
+
| Method | Yes | The method type to use for validation. Possible values: **IsLengthRange**, **MatchesRegex**, **IncludesCharacters**, or **IsDateRange**. |
45
45
| HelpText | No | An error message for users if the check fails. This string can be localized using the [language customization](localization.md)|
46
46
47
47
The **Predicate** element contains the following elements:
@@ -63,6 +63,18 @@ The **Parameter** element contains the following attributes:
63
63
| ------- | ----------- | ----------- |
64
64
| Id | 1:1 | The identifier of the parameter. |
65
65
66
+
### Predicate methods
67
+
68
+
### IsLengthRange
69
+
70
+
The **IsLengthRange** value checks whether the length of a string claim value is within the range of minimum and maximum parameters specified. The Predicate element supports the following parameters:
71
+
72
+
| Parameter | Required | Description |
73
+
| ------- | ----------- | ----------- |
74
+
| Maximum | Yes | The minimum number of characters that must be entered. |
75
+
| Minimum | Yes | The maximum number of characters that can be entered. |
76
+
77
+
66
78
The following example shows a `IsLengthRange` method with the parameters `Minimum` and `Maximum` that specify the length range of the string:
0 commit comments