<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z00007TgIUsCANOkta Classic EngineAPI Access ManagementAnswered2022-03-03T20:42:11.000Z2022-03-02T07:23:29.000Z2022-03-03T20:42:11.000Z

PrathameshP.29233 (CDK Global) asked a question.

Dynamically mint token with only the specific userprofile data

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"}]}


This question is closed.
Loading
Dynamically mint token with only the specific userprofile data