Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to properly read from JSON data into AD B2C custom policy claims #13

Open
mmeier-a opened this issue Aug 23, 2023 · 0 comments
Open

Comments

@mmeier-a
Copy link

I have a cartain issue regarding mapping from a JSON response into custom policy claims. I have been through many documentation and examples regarding JSON transformation and extracting claims from JSON, but could not find any hint on my specific JSON format. I am thankful for any solutions and hints, as I really don't know how to access the data within the JSON properly.

The JSON to extract claims from looks like this:
[{"account_id":"0925", "first_name":"TestFirst", "last_name":"TestLast", "mail":"[email protected]"}]

The only thing I want to achieve is to extract "account_id", "first_name", "last_name" and "mail" into claims to show them in the JWt issuer, like you have already provided similar approaches to other JSON extraction examples in your unit tests.

I really appreciate any guidance on this topic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant