Skip to content

Commit 2fb58bc

Browse files
authored
Merge pull request #107839 from yoelhor/patch-7
Update localization-string-ids.md
2 parents e065588 + 50343f9 commit 2fb58bc

File tree

4 files changed

+46
-20
lines changed

4 files changed

+46
-20
lines changed

articles/active-directory-b2c/boolean-transformations.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ manager: celestedg
99
ms.service: active-directory
1010
ms.workload: identity
1111
ms.topic: reference
12-
ms.date: 03/03/2020
12+
ms.date: 03/16/2020
1313
ms.author: mimart
1414
ms.subservice: B2C
1515
---
@@ -62,7 +62,7 @@ Checks that boolean values of two claims are equal, and throws an exception if t
6262
| inputClaim | inputClaim | boolean | The ClaimType to be asserted. |
6363
| InputParameter |valueToCompareTo | boolean | The value to compare (true or false). |
6464

65-
The **AssertBooleanClaimIsEqualToValue** 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). The **UserMessageIfClaimsTransformationBooleanValueIsNotEqual** self-asserted technical profile metadata controls the error message that the technical profile presents to the user.
65+
The **AssertBooleanClaimIsEqualToValue** 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). The **UserMessageIfClaimsTransformationBooleanValueIsNotEqual** 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).
6666

6767
![AssertStringClaimsAreEqual execution](./media/boolean-transformations/assert-execution.png)
6868

articles/active-directory-b2c/date-transformations.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ manager: celestedg
88
ms.service: active-directory
99
ms.workload: identity
1010
ms.topic: reference
11-
ms.date: 02/03/2020
11+
ms.date: 02/16/2020
1212
ms.author: mimart
1313
ms.subservice: B2C
1414
---
@@ -31,7 +31,7 @@ Checks that one date and time claim (string data type) is later than a second da
3131
| InputParameter | AssertIfRightOperandIsNotPresent | boolean | Specifies whether this assertion should pass if the right operand is missing. |
3232
| InputParameter | TreatAsEqualIfWithinMillseconds | int | Specifies the number of milliseconds to allow between the two date times to consider the times equal (for example, to account for clock skew). |
3333

34-
The **AssertDateTimeIsGreaterThan** 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). The **DateTimeGreaterThan** self-asserted technical profile metadata controls the error message that the technical profile presents to the user.
34+
The **AssertDateTimeIsGreaterThan** 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). The **DateTimeGreaterThan** 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).
3535

3636
![AssertStringClaimsAreEqual execution](./media/date-transformations/assert-execution.png)
3737

@@ -77,8 +77,8 @@ The self-asserted technical profile calls the validation **login-NonInteractive*
7777
### Example
7878

7979
- Input claims:
80-
- **leftOperand**: 2018-10-01T15:00:00.0000000Z
81-
- **rightOperand**: 2018-10-01T14:00:00.0000000Z
80+
- **leftOperand**: 2020-03-01T15:00:00.0000000Z
81+
- **rightOperand**: 2020-03-01T14:00:00.0000000Z
8282
- Result: Error thrown
8383

8484
## ConvertDateToDateTimeClaim
@@ -106,9 +106,9 @@ The following example demonstrates the conversion of the claim `dateOfBirth` (da
106106
### Example
107107

108108
- Input claims:
109-
- **inputClaim**: 2019-06-01
109+
- **inputClaim**: 2020-15-03
110110
- Output claims:
111-
- **outputClaim**: 1559347200 (June 1, 2019 12:00:00 AM)
111+
- **outputClaim**: 2020-15-03T00:00:00.0000000Z
112112

113113
## ConvertDateTimeToDateClaim
114114

@@ -135,9 +135,9 @@ The following example demonstrates the conversion of the claim `systemDateTime`
135135
### Example
136136

137137
- Input claims:
138-
- **inputClaim**: 1559347200 (June 1, 2019 12:00:00 AM)
138+
- **inputClaim**: 2020-15-03T11:34:22.0000000Z
139139
- Output claims:
140-
- **outputClaim**: 2019-06-01
140+
- **outputClaim**: 2020-15-03
141141

142142
## GetCurrentDateTime
143143

@@ -158,7 +158,7 @@ Get the current UTC date and time and add the value to a ClaimType.
158158
### Example
159159

160160
* Output claims:
161-
* **currentDateTime**: 1534418820 (August 16, 2018 11:27:00 AM)
161+
* **currentDateTime**: 2020-15-03T11:40:35.0000000Z
162162

163163
## DateTimeComparison
164164

@@ -194,8 +194,8 @@ To run the claim transformation, you first need to get the current dateTime and
194194
### Example
195195

196196
- Input claims:
197-
- **firstDateTime**: 2018-01-01T00:00:00.100000Z
198-
- **secondDateTime**: 2018-04-01T00:00:00.100000Z
197+
- **firstDateTime**: 2020-01-01T00:00:00.100000Z
198+
- **secondDateTime**: 2020-04-01T00:00:00.100000Z
199199
- Input parameters:
200200
- **operator**: later than
201201
- **timeSpanInSeconds**: 7776000 (90 days)

articles/active-directory-b2c/localization-string-ids.md

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
22
title: Localization string IDs - Azure Active Directory B2C | Microsoft Docs
3-
description: Specify the IDs for a content definition with an Id of api.signuporsignin in a custom policy in Azure Active Directory B2C.
3+
description: Specify the IDs for a content definition with an ID of api.signuporsignin in a custom policy in Azure Active Directory B2C.
44
services: active-directory-b2c
55
author: msmimart
66
manager: celestedg
77

88
ms.service: active-directory
99
ms.workload: identity
1010
ms.topic: reference
11-
ms.date: 03/09/2020
11+
ms.date: 03/16/2020
1212
ms.author: mimart
1313
ms.subservice: B2C
1414
---
@@ -21,7 +21,7 @@ The **Localization** element enables you to support multiple locales or language
2121

2222
## Sign-up or sign-in page elements
2323

24-
The following Ids are used for a content definition with an ID of `api.signuporsignin`.
24+
The following IDs are used for a content definition with an ID of `api.signuporsignin`.
2525

2626
| ID | Default value |
2727
| -- | ------------- |
@@ -87,7 +87,7 @@ The following example localizes the Facebook identity provider to Arabic:
8787
| **UserMessageIfUserAccountLocked** | Your account is temporarily locked to prevent unauthorized use. Try again later. |
8888
| **AADRequestsThrottled** | There are too many requests at this moment. Please wait for some time and try again. |
8989

90-
## Sign-up and self asserted pages user interface elements
90+
## Sign-up and self-asserted pages user interface elements
9191

9292
The following are the IDs for a content definition with an ID of `api.localaccountsignup` or any content definition that starts with `api.selfasserted`, such as `api.selfasserted.profileupdate` and `api.localaccountpasswordreset`.
9393

@@ -128,7 +128,7 @@ The following are the IDs for a content definition with an ID of `api.localaccou
128128
| **ver_intro_msg** | Verification is necessary. Please click Send button. |
129129
| **ver_input** | Verification code |
130130

131-
### Sign-up and self asserted pages error messages
131+
### Sign-up and self-asserted pages error messages
132132

133133
| ID | Default value |
134134
| -- | ------------- |
@@ -253,6 +253,32 @@ The following are the IDs for a [one time password technical profile](one-time-p
253253
```
254254

255255

256+
## Claims transformations error messages
257+
258+
The following are the IDs for claims transformations error messages:
259+
260+
| ID | Claims transformation | Default value |
261+
| -- | ------------- |------------- |
262+
|UserMessageIfClaimsTransformationBooleanValueIsNotEqual |[AssertBooleanClaimIsEqualToValue](boolean-transformations.md#assertbooleanclaimisequaltovalue) | Boolean claim value comparison failed for claim type "inputClaim".|
263+
|DateTimeGreaterThan |[AssertDateTimeIsGreaterThan](date-transformations.md#assertdatetimeisgreaterthan) | Claim value comparison failed: The provided left operand is greater than the right operand.|
264+
|UserMessageIfClaimsTransformationStringsAreNotEqual |[AssertStringClaimsAreEqual](string-transformations.md#assertstringclaimsareequal) | Claim value comparison failed using StringComparison "OrdinalIgnoreCase".|
265+
266+
### Example
267+
268+
```XML
269+
<LocalizedResources Id="api.localaccountsignup.en">
270+
<LocalizedStrings>
271+
<LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfClaimsTransformationBooleanValueIsNotEqual">Your email address hasn't been verified.</LocalizedString>
272+
<LocalizedString ElementType="ErrorMessage" StringId="DateTimeGreaterThan">Expiration date must be greater that the current date.</LocalizedString>
273+
<LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfClaimsTransformationStringsAreNotEqual">The email entry fields do not match. Please enter the same email address in both fields and try again.</LocalizedString>
274+
</LocalizedStrings>
275+
</LocalizedResources>
276+
```
277+
278+
279+
280+
281+
256282

257283

258284

articles/active-directory-b2c/string-transformations.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ manager: celestedg
99
ms.service: active-directory
1010
ms.workload: identity
1111
ms.topic: reference
12-
ms.date: 02/24/2020
12+
ms.date: 03/16/2020
1313
ms.author: mimart
1414
ms.subservice: B2C
1515
---
@@ -30,7 +30,7 @@ Compare two claims, and throw an exception if they are not equal according to th
3030
| InputClaim | inputClaim2 | string | Second claim's type, which is to be compared. |
3131
| InputParameter | stringComparison | string | string comparison, one of the values: Ordinal, OrdinalIgnoreCase. |
3232

33-
The **AssertStringClaimsAreEqual** 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), or a [DisplayConrtol](display-controls.md). The `UserMessageIfClaimsTransformationStringsAreNotEqual` metadata of a self-asserted technical profile controls the error message that is presented to the user.
33+
The **AssertStringClaimsAreEqual** 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), or a [DisplayConrtol](display-controls.md). The `UserMessageIfClaimsTransformationStringsAreNotEqual` metadata of a self-asserted technical profile controls the error message that is presented to the user. The error messages can be [localized](localization-string-ids.md#claims-transformations-error-messages).
3434

3535

3636
![AssertStringClaimsAreEqual execution](./media/string-transformations/assert-execution.png)

0 commit comments

Comments
 (0)