Microsoft Secure Tech Accelerator
Apr 03 2024, 07:00 AM - 11:00 AM (PDT)
Microsoft Tech Community

Azure AD B2C - Claims in Sign up and sign in are not showing

Iron Contributor

I am missing something simple I am sure...

 

I have a user flow created for Sign up and sign in as follow:

clipboard_image_0.png

I am interested in returning the following claims:

clipboard_image_1.png

 

When using the run user flow with the reply URL to view the JWT:

clipboard_image_2.png

 

I am receiving a response without the claims I specified:

clipboard_image_3.png

 

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.

 

1 Reply

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