This folder contains unit tests for Azure AD B2C claim resolvers. For more information, check out the About claim resolvers in Azure Active Directory B2C custom policies article.
Demonstrates how to use the contextual claim resolvers of the authorization request. The unit test defines the ExperimentalTechnicalProfile self-asserted technical profile with the following:
IncludeClaimResolvingInClaimsHandlingmetadata is set totrue.InputClaimsets theDefaultValueto the claim resolver, and also sets theAlwaysUseDefaultValuetotrue.OutputClaimrenders the claims on the screen and returns them back to the next orchestration step.
Live demo
Quick deploy
Policy
Documentation
Demonstrates how to use the culture claim resolvers with information about the language used in the authorization request. The unit test defines the ExperimentalTechnicalProfile self-asserted technical profile with the following:
IncludeClaimResolvingInClaimsHandlingmetadata is set totrue.InputClaimsets theDefaultValueto the claim resolver, and also sets theAlwaysUseDefaultValuetotrue.OutputClaimrenders the claims on the screen and returns them back to the next orchestration step.
Live demo
Quick deploy
Policy
Documentation
Demonstrates how to use the policy claim resolvers with information about the policy used in the authorization request. The unit test defines the ExperimentalTechnicalProfile self-asserted technical profile with the following:
IncludeClaimResolvingInClaimsHandlingmetadata is set totrue.InputClaimsets theDefaultValueto the claim resolver, and also sets theAlwaysUseDefaultValuetotrue.OutputClaimrenders the claims on the screen and returns them back to the next orchestration step.
Live demo
Quick deploy
Policy
Documentation
Demonstrates how to use the OIDC claim resolvers with information about the OpenID Connect authorization request. The unit test defines the ExperimentalTechnicalProfile self-asserted technical profile with the following:
IncludeClaimResolvingInClaimsHandlingmetadata is set totrue.InputClaimsets theDefaultValueto the claim resolver, and also sets theAlwaysUseDefaultValuetotrue.OutputClaimrenders the claims on the screen and returns them back to the next orchestration step.
Live demo
Quick deploy
Policy
Documentation
Demonstrates how to use the OAuth2 key-values resolvers with information from the authorization request custom query string parameters. The unit test defines the ExperimentalTechnicalProfile self-asserted technical profile with the following:
IncludeClaimResolvingInClaimsHandlingmetadata is set totrue.InputClaimsets theDefaultValueto the claim resolver, and also sets theAlwaysUseDefaultValuetotrue.OutputClaimrenders the claims on the screen and returns them back to the next orchestration step.
In the following live demo sample, the authorization request contains two custom query string parameter: campaignId=holidays&str1=abcd.
Live demo
Quick deploy
Policy
Documentation
Demonstrates how to use the SAML claim resolvers with information about the SAML authorization request. The unit test defines the ExperimentalTechnicalProfile self-asserted technical profile with the following:
IncludeClaimResolvingInClaimsHandlingmetadata is set totrue.InputClaimsets theDefaultValueto the claim resolver, and also sets theAlwaysUseDefaultValuetotrue.OutputClaimrenders the claims on the screen and returns them back to the next orchestration step.
Live demo
Quick deploy
Policy
Documentation
Use our SAML test application to test this policy. In the SAML test app provide the following information:
- Tenant Name:
b2clivedemo - B2C Policy:
B2C_1A_CR_SAML - Issuer:
https://b2clivedemo.onmicrosoft.com/samlapp