This folder contains unit tests for Azure AD B2C Social claims transformations. For more information, check out the Integer claims transformations article.
Adds the alternativeSecurityId1
and alternativeSecurityId1
claims to the result
claim. To run this unit test, we first create two alternative security IDs using the CreateFirstAlternativeSecurityId, and CreateSecondAlternativeSecurityId claims transformation. Then we add the alternativeSecurityId1
and alternativeSecurityId1
claims to the result
collection using the AddFirstAlternativeSecurityId and AddSecondAlternativeSecurityId claims transformation. The result of this unit test is the result
claim that contains the two alternative security IDs.
The unit test defines the following elements:
- ExperimentalTechnicalProfile - self-asserted technical profile. This technical profile renders the
issuerUserId1
,identityProvider1
,issuerUserId2
,identityProvider2
claims with default values (you can change the values). The output claims transformation first call the CreateFirstAlternativeSecurityId, and CreateSecondAlternativeSecurityId claims transformation. Then it calls the AddFirstAlternativeSecurityId and the AddSecondAlternativeSecurityId claims transformation. The last two ones are 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. - AddFirstAlternativeSecurityId and AddSecondAlternativeSecurityId claims transformation - the unit test.
Live demo Quick deploy Policy Documentation
Creates alternativeSecurityId claim type result
from issuerUserId1
and identityProvider1
. The result of this unit test is the result
claim that contains the alternative security IDs in a JSON format. The unit test defines the following elements:
- ExperimentalTechnicalProfile - self-asserted technical profile. This technical profile renders the
issuerUserId1
,identityProvider1
claims with default values (you can change the values). The output claims transformation first call the CreateFirstAlternativeSecurityId, and CreateSecondAlternativeSecurityId unit tests. 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. - CreateFirstAlternativeSecurityId and CreateSecondAlternativeSecurityId claims transformation - the unit test.
Live demo Quick deploy Policy Documentation
Returns list of issuers from the alternativeSecurityIdCollection
claim into the result
(stringCollection claim). To run this unit test we first:
- Create the
alternativeSecurityId1
andalternativeSecurityId2
, from user IDs and identity providers name. - Add the
alternativeSecurityId1
andalternativeSecurityId2
to theAlternativeSecurityIds
claim. - Returns list of issuers from the
alternativeSecurityIdCollection
claim into theresult
.
The unit test defines the following elements:
- ExperimentalTechnicalProfile - self-asserted technical profile. This technical profile renders the
issuerUserId1
,identityProvider1
,issuerUserId2
,identityProvider2
claims with default values (you can change the values). The output claims transformation first call the CreateFirstAlternativeSecurityId, CreateSecondAlternativeSecurityId, AddFirstAlternativeSecurityId and AddSecondAlternativeSecurityId claims transformation. Then it calls the unit test ExtractIdentityProviders claims transformation. 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. - ExtractIdentityProviders claims transformation - the unit test.
Live demo Quick deploy Policy Documentation
Removes the identityProvider1
from an alternativeSecurityIdCollection claim. To run this unit test we first:
- Create the
alternativeSecurityId1
andalternativeSecurityId2
, from user IDs and identity providers name. - Add the
alternativeSecurityId1
andalternativeSecurityId2
to theresult
claim. Removes theidentityProvider1
from anresult
claim.
The unit test defines the following elements:
- ExperimentalTechnicalProfile - self-asserted technical profile. This technical profile renders the
issuerUserId1
,identityProvider1
,issuerUserId2
,identityProvider2
claims with default values (you can change the values). The output claims transformation first call the CreateFirstAlternativeSecurityId, CreateSecondAlternativeSecurityId, AddFirstAlternativeSecurityId and AddSecondAlternativeSecurityId claims transformation. Then it calls the unit test RemoveAlternativeSecurityIdByIdentityProvider claims transformation. 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. - RemoveAlternativeSecurityIdByIdentityProvider claims transformation - the unit test.