
PrathameshP.29233 (CDK Global) asked a question.
Hello,
We have a requirement where we want to mint the token with user profile attributes.
However, this minting should only have requested values in the token as per the key.
For example, if custom user profile contains this attribute - authorization
Now this attribute is having two values for demo -
authorization
{"A":[{"pqr"}]}
{"B":[{"xyz"}]}
With these details, while minting tokens, we want the token to be minted with respect to a specific key in the authorization attribute. For example -
If requested for Key A, then token should only be minted with the custom claim as
"authorization":
{"A":[{"pqr"}]}
and not with entire authorization attribute as a claim -
"authorization":
{"A":[{"pqr"}]},
{"B":[{"xyz"}]}

Hello @PrathameshP.29233 (CDK Global)
I hope you are having a great day
Thank you for posting, you request an access token by making a call to your Okta Org Authorization Server/authorize endpoint. Only the Org Authorization Server can mint access tokens that contain Okta API scopes. you can See Which authorization server should you use at the following link: https://developer.okta.com/docs/concepts/auth-servers/#which-authorization-server-should-you-use
In addition, the following link will show you how to create the token:
https://developer.okta.com/docs/guides/create-an-api-token/main/
Have a great day ahead
Regards
Henry E.
Okta Inc