Post Custom Claim when Obtaining an id_token

Is it possible to post custom claim data parameters when obtaining an id token? In our authorization server settings we set a claim for foo, and the post querystring looks like:

curl --request POST   --url https://oursub.okta.com/oauth2/aus18s9niuVO2474P357/v1/token   --header 'accept: application/json'   --header 'authorization: Basic ourkey'   --header 'cache-control: no-cache'   --header 'content-type: application/x-www-form-urlencoded'   --data 'grant_type=client_credentials&scope=our_api&foo=bar'

Hi @shouttag_mike

If you want to generate custom claims for ID token, I recommend checking out the Token Inline Hook functionality.

In order to have it enabled for your Okta org, please send an email to support@okta.com and request the features CALLBACKS and API_ACCESS_MANAGEMENT_EXTENSIBILITY.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.