Share via

AAD B2C - RESTfull technical profile doesn't parse JSON properties with space in the name

Angel Nikolov 61 Reputation points
2023-09-19T12:02:26.57+00:00

Hi team,

As the title implies, currently configuring a RESTful technical profile that calls a legacy API which sometimes returns property names that contain space, e.g. "Foo Bar":

{
    "Foo Bar": "baz"
}

However, this appears to be impossible for the B2C parser to comprehend. Trying different PartnerClaimType values proved that using square brackets property accessor notation allows B2C to read the response value and set it to the claim:

<OutputClaims>
  <OutputClaim ClaimTypeReferenceId="FooBar" PartnerClaimType="['Foo Bar']" />
</OutputClaims>

Please let me know if there's another way to achieve this?

I rummaged through the docs quite a lot and couldn't find anything on this topic.

Thank you

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments

Answer accepted by question author

Anonymous
2023-09-19T20:10:08.51+00:00

Hi @Angel Nikolov , this is the recommended solution to this. There really isn't anything else less complicated that yields the same result. If you have any questions or concerns about this please let me know and I can help you further!

If this answer helps you please mark "Accept Answer" so other users can reference it.

Thank you,

James

Was this answer helpful?


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.