<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
0D54z00009lLLCYCA4Okta Classic EngineAuthenticationAnswered2023-10-23T17:54:10.000Z2023-10-20T21:02:16.000Z2023-10-23T17:54:10.000Z

BrunoM.38675 (Customer) asked a question.

access_denied when experimenting with token exchange flow

Hi, i've been trying to experiment with the token exchange flow in okta but i'm always getting the following error:

{"error":"access_denied","error_description":"The resource owner or authorization server denied the request."}

 

Im sending:

POST <my auth server(not the default)>/v1/token

Authorization: Basic <base64(client_id:client_secret)>

Body: subject_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&audience=<the-auth-server-audience>&grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Atoken-exchange&scope=<a-valid-scope>&subject_token=<access token from the same auth server>

 

Could it be that the limitation is because of being the same auth server minting the subject_token and doing the token exchange?

 

Thanks!


This question is closed.
Loading
access_denied when experimenting with token exchange flow