Search code examples
azureazure-active-directory

azure ad b2c run user flow doesnt return token with claims on it


I have configured a user flow to get the users email surname given name and city, and when I press Run User Flow and add the callback URL to be jwt.ms, I dont see the email and all of the above claims on the token. Why?


Solution

  • I checked needed claims when I run user flow.

    Before that make sure to add the required API permissions like openid , offline_access,profile, and User.Read.All permissions granted admin consent:

    enter image description here

    When I run the signin userflow or signupsignin but the user is already signed in , the output claims when user logged in did not contain any additional claims.

    As I had only below claims selected to return in user flow application claims:

    enter image description here

    enter image description here

    When I signed up with the extra application claims selected .

    enter image description here

    https://xxxb2c.b2clogin.com/xxxxxb2c.onmicrosoft.com/oauth2/v2.0/authorize?p=B2C_1_newSignupSignin&client_id=5xxxxxxxx&nonce=defaultNonce&redirect_uri=https%3A%2F%2Fjwt.ms&scope=openid&response_type=id_token&prompt=login
    

    And when the new user registers , and when he filles everything .

    enter image description here enter image description here

    And the claims appeared in the token: enter image description here