Skip to content
Browse Gluu Flex 6.4.0

Add required claims to id-token


tags:

  • administration
  • token
  • claims

  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 the Dynamic Registration Custom Attributes filed.

image

#Including the claims to the token

To include the claims to token

  • Go to Schema ---> person

  • Change the Status of the attribute to Active.

  • Note oxAuth claim name. This is the claim-name used inside token. image

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

  • To include the claims in the token we will include them in the profile scope. 1. Enable profile as the Default Scope 2. Include the claims in the claim field. image

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

  • Use the client to generate the token. image

We use analytics cookies to measure which pages are useful, so we can improve them. They are only set if you accept. Essential cookies needed for the site to work are always on. See our privacy policy.