Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

readme.md

Claim resolvers

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.

Context

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:

  • IncludeClaimResolvingInClaimsHandling metadata is set to true.
  • InputClaim sets the DefaultValue to the claim resolver, and also sets the AlwaysUseDefaultValue to true.
  • OutputClaim renders the claims on the screen and returns them back to the next orchestration step.

live demo Live demo   Quick deploy Quick deploy   policy Policy   documentation Documentation

Culture

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:

  • IncludeClaimResolvingInClaimsHandling metadata is set to true.
  • InputClaim sets the DefaultValue to the claim resolver, and also sets the AlwaysUseDefaultValue to true.
  • OutputClaim renders the claims on the screen and returns them back to the next orchestration step.

live demo Live demo   Quick deploy Quick deploy   policy Policy   documentation Documentation

Policy

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:

  • IncludeClaimResolvingInClaimsHandling metadata is set to true.
  • InputClaim sets the DefaultValue to the claim resolver, and also sets the AlwaysUseDefaultValue to true.
  • OutputClaim renders the claims on the screen and returns them back to the next orchestration step.

live demo Live demo   Quick deploy Quick deploy   policy Policy   documentation Documentation

OpenID Connect relying party application

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:

  • IncludeClaimResolvingInClaimsHandling metadata is set to true.
  • InputClaim sets the DefaultValue to the claim resolver, and also sets the AlwaysUseDefaultValue to true.
  • OutputClaim renders the claims on the screen and returns them back to the next orchestration step.

live demo Live demo   Quick deploy Quick deploy   policy Policy   documentation Documentation

OAuth2 key-values

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:

  • IncludeClaimResolvingInClaimsHandling metadata is set to true.
  • InputClaim sets the DefaultValue to the claim resolver, and also sets the AlwaysUseDefaultValue to true.
  • OutputClaim renders 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 Live demo   Quick deploy Quick deploy   policy Policy   documentation Documentation

SAML Service provider

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:

  • IncludeClaimResolvingInClaimsHandling metadata is set to true.
  • InputClaim sets the DefaultValue to the claim resolver, and also sets the AlwaysUseDefaultValue to true.
  • OutputClaim renders the claims on the screen and returns them back to the next orchestration step.

live demo Live demo   Quick deploy Quick deploy   policy Policy   documentation Documentation

Use the SAML Service provider live demo

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