Hi @Yauh Ask , try using the GetClaimFromJson
transformation method. Here's a sample configuration for parsing the formatted
field from the JSON object:
<ClaimsTransformation Id="GetFormattedAddressFromJson" TransformationMethod="GetClaimFromJson">
<InputClaims>
<InputClaim ClaimTypeReferenceId="addressJson" TransformationClaimType="inputJson" />
</InputClaims>
<InputParameters>
<InputParameter Id="claimToExtract" DataType="string" Value="address.formatted" />
</InputParameters>
<OutputClaims>
<OutputClaim ClaimTypeReferenceId="formattedAddress" TransformationClaimType="extractedClaim" />
</OutputClaims>
</ClaimsTransformation>
In this example, the addressJson
claim should contain the JSON object you provided. The transformation will extract the formatted
field and store it in the formattedAddress
claim.
Regarding the use of ExperimentalTechnicalProfile
, it is not necessary for parsing JSON objects from OpenID Connect providers. The claims transformation configuration provided above should work within the base.xml
file.
If you're still encountering errors, please double-check your configuration and ensure that the input claims are correctly populated.
Please let me know if you have any questions and I can help you further.
If this answer helps you please mark "Accept Answer" so other users can reference it.
Thank you,
James