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/boolean-transformations.md
+25-25Lines changed: 25 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,29 +9,29 @@ manager: CelesteDG
9
9
ms.service: active-directory
10
10
ms.workload: identity
11
11
ms.topic: reference
12
-
ms.date: 01/16/2022
12
+
ms.date: 01/17/2022
13
13
ms.author: kengaderdus
14
14
ms.subservice: B2C
15
15
---
16
16
17
17
# Boolean claims transformations
18
18
19
-
This article provides examples for using the boolean claims transformations of the Identity Experience Framework schema in Azure Active Directory B2C (Azure AD B2C). For more information, see [ClaimsTransformations](claimstransformations.md).
19
+
This article provides examples for using the boolean claims transformations of the Identity Experience Framework schema in Azure Active Directory B2C (Azure AD B2C). For more information, see [claims transformations](claimstransformations.md).
20
20
21
21
## AndClaims
22
22
23
-
Performs an And operation of two boolean inputClaims and sets the outputClaim with result of the operation.
23
+
Computes an `And` operation of two boolean input claims, and sets the output claim with result of the operation.
24
24
25
-
|Item| TransformationClaimType | Data Type | Notes |
25
+
|Element| TransformationClaimType | Data Type | Notes |
| InputClaim | inputClaim1 | boolean | The first ClaimType to evaluate. |
28
-
| InputClaim | inputClaim2 | boolean | The second ClaimType to evaluate. |
29
-
|OutputClaim | outputClaim | boolean | The ClaimTypes that will be produced after this claims transformation has been invoked (true or false). |
27
+
| InputClaim | inputClaim1 | boolean | The first claim to evaluate. |
28
+
| InputClaim | inputClaim2 | boolean | The second claim to evaluate. |
29
+
|OutputClaim | outputClaim | boolean | The claim that will be produced after this claims transformation has been invoked (true or false). |
30
30
31
31
32
32
### Example of AndClaims
33
33
34
-
The following claims transformation demonstrates how to And two boolean ClaimTypes: `isEmailNotExist`, and `isSocialAccount`. The output claim `presentEmailSelfAsserted` is set to `true` if the value of both input claims are `true`. In an orchestration step, you can use a precondition to preset a self-asserted page, only if a social account email is empty.
34
+
The following claims transformation demonstrates how to `And` two boolean claims: `isEmailNotExist`, and `isSocialAccount`. The output claim `presentEmailSelfAsserted` is set to `true` if the values of both input claims are `true`.
| inputClaim | inputClaim | boolean | The ClaimType to be asserted. |
61
+
| inputClaim | inputClaim | boolean | The claim to be checked. |
62
62
| InputParameter |valueToCompareTo | boolean | The value to compare (true or false). |
63
63
64
64
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).
@@ -67,7 +67,7 @@ The **AssertBooleanClaimIsEqualToValue** claims transformation is always execute
67
67
68
68
### Example of AssertBooleanClaimIsEqualToValue
69
69
70
-
The following claims transformation demonstrates how to check the value of a boolean ClaimType with a `true` value. If the value of the `accountEnabled`ClaimType is false, an error message is thrown.
70
+
The following claims transformation demonstrates how to check the value of a boolean claim with a `true` value. If the value of the `accountEnabled`claim is false, an error message is thrown.
| InputClaim | inputClaim | boolean | The ClaimType to be asserted. |
129
+
| InputClaim | inputClaim | boolean | The claim to be compared. |
130
130
| InputParameter |valueToCompareTo | boolean | The value to compare (true or false). |
131
-
| OutputClaim | compareResult | boolean | The ClaimType that is produced after this ClaimsTransformation has been invoked. |
131
+
| OutputClaim | compareResult | boolean | The claim that is produced after this claims transformation has been invoked. |
132
132
133
133
### Example of CompareBooleanClaimToValue
134
134
135
-
The following claims transformation demonstrates how to check the value of a boolean ClaimType with a `true` value. If the value of the `IsAgeOver21Years`ClaimType is equal to `true`, the claims transformation returns `true`, otherwise `false`.
135
+
The following claims transformation demonstrates how to check the value of a boolean claim with a `true` value. If the value of the `IsAgeOver21Years`claim is equal to `true`, the claims transformation returns `true`, otherwise `false`.
| InputClaim | inputClaim1 | boolean | The first ClaimType to evaluate. |
194
-
| InputClaim | inputClaim2 | boolean | The second ClaimType to evaluate. |
195
-
| OutputClaim | outputClaim | boolean | The ClaimTypes that will be produced after this ClaimsTransformation has been invoked (true or false). |
193
+
| InputClaim | inputClaim1 | boolean | The first claim to evaluate. |
194
+
| InputClaim | inputClaim2 | boolean | The second claim to evaluate. |
195
+
| OutputClaim | outputClaim | boolean | The claim that will be produced after this claims transformation has been invoked (true or false). |
196
196
197
197
### Example of OrClaims
198
198
199
-
The following claims transformation demonstrates how to `Or` two boolean ClaimTypes. In the orchestration step, you can use a precondition to preset a self-asserted page, if the value of one of the claims is `true`.
199
+
The following claims transformation demonstrates how to `Or` two boolean claims.
Copy file name to clipboardExpand all lines: articles/active-directory-b2c/claims-transformation-technical-profile.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,15 @@
1
1
---
2
-
title: Define a Claims transformation technical profile
2
+
title: Define a claims transformation technical profile
3
3
titleSuffix: Azure AD B2C
4
-
description: Define a Claims transformation technical profile in a custom policy in Azure Active Directory B2C.
4
+
description: Define a claims transformation technical profile in a custom policy in Azure Active Directory B2C.
5
5
services: active-directory-b2c
6
6
author: kengaderdus
7
7
manager: CelesteDG
8
8
9
9
ms.service: active-directory
10
10
ms.workload: identity
11
11
ms.topic: reference
12
-
ms.date: 01/16/2022
12
+
ms.date: 01/17/2022
13
13
ms.author: kengaderdus
14
14
ms.subservice: B2C
15
15
---
@@ -35,7 +35,7 @@ The following example shows a claims transformation technical profile:
35
35
36
36
## Output claims
37
37
38
-
The **OutputClaims** element is mandatory. You should provide at least one output claim returned by the technical profile. The following example shows how to set default values in the output claims:
38
+
The **OutputClaims** element is mandatory. Provide at least one output claim returned by the technical profile. The following example shows how to set default values in the output claims:
The claims transformation technical profile enables you to execute a claims transformation from any user journey's orchestration step. In the following example, the orchestration step calls one of the unlink technical profiles, such as **UnLink-Facebook-OAUTH**. This technical profile calls the claims transformation technical profile **RemoveAlternativeSecurityIdByIdentityProvider**, which generates a new **AlternativeSecurityIds2** claim that contains the list of user social identities, while removing the Facebook identity from the collections.
81
+
The claims transformation technical profile enables you to execute a claims transformation from any user journey's orchestration step. In the following example, the orchestration step calls one of the unlink technical profiles, such as **UnLink-Facebook-OAUTH**. This technical profile calls the output claims transformation **RemoveAlternativeSecurityIdByIdentityProvider**, which generates a new **AlternativeSecurityIds2** claim. The output claim contains the list of user's social identities, while removing the Facebook identity from the collections.
82
82
83
83
```xml
84
84
<UserJourneyId="AccountUnLink">
@@ -100,8 +100,8 @@ The claims transformation technical profile enables you to execute a claims tran
100
100
101
101
| Attribute | Required | Description |
102
102
| --------- | -------- | ----------- |
103
-
| IncludeClaimResolvingInClaimsHandling | No | For input and output claims, specifies whether [claims resolution](claim-resolver-overview.md) is included in the technical profile. Possible values: `true`, or `false`(default). If you want to use a claims resolver in the technical profile, set this to `true`. |
104
-
| ContentDefinitionReferenceId | No | The identifier of the [content definition](contentdefinitions.md) associated with this technical profile. The content definition metadata is required for [FormatLocalizedString](string-transformations.md#formatlocalizedstring), [GetLocalizedStringsTransformation](string-transformations.md#getlocalizedstringstransformation), and [GetMappedValueFromLocalizedCollection](string-transformations.md#getmappedvaluefromlocalizedcollection) claims transformations.|
103
+
| IncludeClaimResolvingInClaimsHandling | No | For input and output claims, specifies whether [claims resolution](claim-resolver-overview.md) is included in the technical profile. Possible values: `true`, or `false`(default). If you want to use a claims resolver in the technical profile, set this metadata to `true`. |
104
+
| ContentDefinitionReferenceId | No | The identifier of the [content definition](contentdefinitions.md) associated with this technical profile. The content definition metadata is required for [FormatLocalizedString](string-transformations.md#formatlocalizedstring), [GetLocalizedStringsTransformation](string-transformations.md#getlocalizedstringstransformation), and [GetMappedValueFromLocalizedCollection](string-transformations.md#getmappedvaluefromlocalizedcollection) claims transformations.|
Copy file name to clipboardExpand all lines: articles/active-directory-b2c/date-transformations.md
+10-13Lines changed: 10 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,21 +8,21 @@ manager: CelesteDG
8
8
ms.service: active-directory
9
9
ms.workload: identity
10
10
ms.topic: reference
11
-
ms.date: 1/16/2022
11
+
ms.date: 1/17/2022
12
12
ms.author: kengaderdus
13
13
ms.subservice: B2C
14
14
ms.custom: "b2c-support"
15
15
---
16
16
17
17
# Date claims transformations
18
18
19
-
This article provides examples for using the date claims transformations of the Identity Experience Framework schema in Azure Active Directory B2C (Azure AD B2C). For more information, see [ClaimsTransformations](claimstransformations.md).
19
+
This article provides examples for using the date claims transformations of the Identity Experience Framework schema in Azure Active Directory B2C (Azure AD B2C). For more information, see [claims transformations](claimstransformations.md).
20
20
21
21
## AssertDateTimeIsGreaterThan
22
22
23
23
Asserts that one date is later than a second date. Determines whether the `rightOperand` is greater than the `leftOperand`. If yes, throws an exception.
24
24
25
-
|Item| TransformationClaimType | Data Type | Notes |
25
+
|Element| TransformationClaimType | Data Type | Notes |
| InputClaim | inputClaim | date | The claim type to be converted. |
139
139
| OutputClaim | outputClaim | dateTime | The claim type that is produced after this claims transformation has been invoked. |
@@ -162,20 +162,17 @@ The following example demonstrates the conversion of the claim `dateOfBirth` (da
162
162
163
163
Compares two dates and determines whether the first date is later, earlier, or equal to another. The result is a new Boolean claim with a value of `true` or `false`.
164
164
165
-
|Item| TransformationClaimType | Data Type | Notes |
165
+
|Element| TransformationClaimType | Data Type | Notes |
| InputClaim | firstDateTime | dateTime | The first date to compare whether it's later, earlier, or equal to the second date. Null value throws an exception. |
168
-
| InputClaim | secondDateTime | dateTime | The second date to compare. Null value is treated as the current datetTime. |
168
+
| InputClaim | secondDateTime | dateTime | The second date to compare. Null value is treated as the current date and time. |
169
169
| InputParameter | timeSpanInSeconds | int | Timespan to add to the first date. Possible values: range from negative -2,147,483,648 through positive 2,147,483,647. |
170
-
| InputParameter | operator | string | One of following values: same, later than, or earlier than. |
170
+
| InputParameter | operator | string | One of following values: `same`, `later than`, or `earlier than`. |
171
171
| OutputClaim | result | boolean | The claim that is produced after this claims transformation has been invoked. |
172
172
173
-
Use this claims transformation to determine if first date plus the timespan parameter is later, earlier, or equal to another. For example, you may store the last time a user accepted your terms of services (TOS). After three months, you can ask the user to access the TOS again.
174
-
To run the claim transformation, you first need to get the current date and also the last time user accepts the TOS.
175
-
176
173
### Example of DateTimeComparison
177
174
178
-
The following example shows that the first date (2022-01-01T00:00:00) plus 90 days is later than the second date (2022-03-16T00:00:00).
175
+
Use this claims transformation to determine if first date plus the `timeSpanInSeconds` parameter is later, earlier, or equal to another. The following example shows that the first date (2022-01-01T00:00:00) plus 90 days is later than the second date (2022-03-16T00:00:00).
0 commit comments