Skip to content

Auth Server configuration to add required claims in token

Arnab Dutta edited this page Nov 18, 2024 · 7 revisions

Steps to include user claims in id_token

  1. Login to the Admin UI of the auth server (https://{auth-server-hostname}/admin).
  2. Using the left menu, go to Auth Server ---> Auth server properties.
  3. Add jansInclClaimsInIdTkn to Dynamic Registration Custom Attributes filed.

image

Including the claims to the token

To include the claims to token

  1. Go to Schema ---> person
  2. Change the Status of the attribute to Active.
  3. Note oxAuth claim name. This is the claim-name used inside token.

image

  1. Now go to Users menu and open the user and add the claim and its value.

image

  1. To include the claims in the token we will include them in the profile scope.

5.a. Enable profile as the Default Scope. 5.b. Include the the claims in the claim field.

image

  1. On registering OIDC client using tarp add the profile scope and openid.

image

  1. Use the client to generate the token.
Clone this wiki locally