Custom claims are not displayed in either the id token or access token

I have created custom claim in the default authorization server and have included in all the scopes. When I use the token preview to fetch the ID token or Access token, I am not seeing the claims that I have configured. Where am I going wrong?

Hello @pradeepkumarl,

To be able to assist we would need,

  • screen shots of your custom claim definition
  • your authorization server policy/rules
  • the application user profile for the user you are testing in token preview (assuming that is where the claim is mapping information from).

See here for a tutorial on creating a custom claim.

Thank You,

What expression are you currently using for your custom claim? If the expression used is not valid or is evaluating to null, it won’t appear in the token or in token preview.