This folder contains unit tests for Azure AD B2C Boolean claims transformations. For more information, check out the Boolean claims transformations article.
Computes an And operation of boolean1
and boolean2
claims, and sets the result
claim with result of the operation. The unit test defines the following elements:
- ExperimentalTechnicalProfile - self-asserted technical profile. This technical profile renders the
boolean1
andboolean2
claims with default values (you can change the values). The output claims transformation AndBooleanClaims runs the unit test. Select Continue to run the next orchestration step that shows the result. - ResultTechnicalProfile - self-asserted technical profile. This technical profile shows the
result
of this unit test. - AndBooleanClaims claims transformation - the unit test.
Live demo
Quick deploy
Policy
Documentation
Asserts that boolean1
claim is equal to false, and throws an exception if it's true. The result of this unit test is a result
claim that is set manually to true. Note, you can change the comparison to false, by changing the AssertBoolean1IsTrue claims transformation's valueToCompareTo input parameter. The unit test defines the following elements:
- ExperimentalTechnicalProfile - self-asserted technical profile. This technical profile renders the
boolean1
claim with a default value (you can change the value). Select Continue the run the validation technical profiles. - ExperimentalValidation-Ordinal - claims transformation type of validation technical profile. This validation technical profile invokes the AssertBoolean1IsTrue-Ordinal claims transformation, which runs the assertion.
- AssertBoolean1IsTrue claims transformation - the unit test.
Live demo
Quick deploy
Policy
Documentation
Checks that boolean1
claim is equal to false, and return the result of the compression. Note, you can change the comparison to false, by changing the CheckBoolean1IsTrue claims transformation's valueToCompareTo input parameter. The unit test defines the following elements:
- ExperimentalTechnicalProfile - self-asserted technical profile. This technical profile renders the
boolean1
claim with a default value (you can change the value). The output claims transformation CheckBoolean1IsTrue runs the unit test. Select Continue to run the next orchestration step that shows the result. - ResultTechnicalProfile - self-asserted technical profile. This technical profile shows the
result
of this unit test. - CheckBoolean1IsTrue claims transformation - the unit test.
Live demo
Quick deploy
Policy
Documentation
Computes the Not operation of the boolean1
claim and sets the result
claim with result of the operation. The unit test defines the following elements:
- ExperimentalTechnicalProfile - self-asserted technical profile. This technical profile renders the
boolean1
claim with a default value (you can change the value). The output claims transformation NotBooleanClaim runs the unit test. Select Continue to run the next orchestration step that shows the result. - ResultTechnicalProfile - self-asserted technical profile. This technical profile shows the
result
of this unit test. - NotBooleanClaim claims transformation - the unit test.
Live demo
Quick deploy
Policy
Documentation
Computes an Or operation of boolean1
and boolean2
claims, and sets the result
claim with result of the operation. The unit test defines the following elements:
- ExperimentalTechnicalProfile - self-asserted technical profile. This technical profile renders the
boolean1
andboolean2
claims with default values (you can change the values). The output claims transformation OrBooleanClaims runs the unit test. Select Continue to run the next orchestration step that shows the result. - ResultTechnicalProfile - self-asserted technical profile. This technical profile shows the
result
of this unit test. - OrBooleanClaims claims transformation - the unit test.