Oct 17 2019
- last edited on
Jan 14 2022
I am missing something simple I am sure...
I have a user flow created for Sign up and sign in as follow:
I am interested in returning the following claims:
When using the run user flow with the reply URL to view the JWT:
I am receiving a response without the claims I specified:
So, is there a setting I am overlooking to ask Azure B2C to add the claims I specified or to disable the default behavior or ?
Any pointers appreciated as I just cannot spot what I am doing wrong.
Oct 20 2019 01:00 PM
After trial and error, I believe the behavior is different than I was expecting. I had two boolean values defined in user attributes. These values were not added to the user attributes of the user flow but added to the application claims. My assumption was the values would be set to false in this case but they are not.
In short, it is as simple as if a claim does not have a value then it will not be returned. So a boolean claim will then have three possible values: true, false, missing.
I tested this with Postcode and it has the same behavior