<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
0D54z00009VTKgoCAHOkta Classic EngineAuthenticationAnswered2026-03-23T04:16:57.000Z2023-07-27T07:15:31.000Z2023-07-28T20:31:39.000Z

JR.56041 (-) asked a question.

OAuth Token-Exchange authz with user claims

Hi All,

Just trying to get me head around the On-Behalf-Of/token exchange flow. I have followed the guide at:

https://developer.okta.com/docs/guides/set-up-token-exchange/main/*token-exchange-request-from-service-app-to-api

 

I have been able to exchange a token successfully from a Web App PCKE token as per the documentation.

 

I'm just wondering what additional information should the receiving API be able to determine from the exchanged token?

Should my API be able to get custom claims assigned to that user?

Calls to /userinfo and /introspect are not returning any additional information and Im not sure if this is by design or not.

 

The exchanged token looks like the following when decoded, I am getting the "sub" property containing the correct user id:

{

 "ver": 1,

 "jti": "AT.....",

 "iss": "https://dev-.....kta.com/oauth2/default",

 "aud": "api://default",

 "iat": 16904...,

 "exp": 1690...,

 "cid": "0oaajgu...",

 "uid": "00ua9hktm...",

 "scp": [

  "customapi..."

 ],

 "auth_time": 1690436010,

 "sub": "...@mailinator.com"

}


This question is closed.
Loading
OAuth Token-Exchange authz with user claims