How to include user claims in id_token#
- Login to the Admin UI of the auth server (https://{auth-server-hostname}/admin).
- Using the left menu, go to
Auth Server ---> Auth server properties
. - Add
jansInclClaimsInIdTkn
to theDynamic Registration Custom Attributes
filed.
Including the claims to the token#
To include the claims to token
- Go to
Schema ---> person
- Change the
Status
of the attribute toActive
. - Note
oxAuth claim name
. This is the claim-name used inside token. -
Now go to
Users
menu and open the user and add the claim and its value. -
To include the claims in the token we will include them in the profile scope.
- Enable
profile
as theDefault Scope
- Include the claims in the claim field.
- Enable
- On registering OIDC client using tarp add the
profile
scope andopenid
. - Use the client to generate the token.
Last update:
2025-05-12
Created: 2025-05-12
Created: 2025-05-12