<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
0D54z0000AHXv99CQDOkta Classic EngineAPI Access ManagementAnswered2025-12-15T09:01:32.000Z2024-11-12T22:18:12.000Z2024-11-13T00:53:44.000Z

f12fi (f12fi) asked a question.

The authorization code is invalid or has expired

I'm on a trial account with Okta and trying to get a token from an app under the Authorization type grant.

it works well via Postman but I need to do the same from Node-red flows.

I see 400 Bad request The authorization code is invalid or has expired

 

Image is not available

 

not sure, what should I add to the Resource field. tried the full URL of my org in Okta, like https://org-trial-9637904.okta.com

 

Please let me know if any additional info is needed


    • f12fi (f12fi)

      Thank you for your reply, Tim

       

      i added the offline_access scope but the error message didn't change - 400 Bad Request

      added also openid scope

       

      Image is not available
       

      I can do Token Preview with openid, users.read

      with Postman I'm using only users.read scope and it gives me a token

      Image is not available

      Expand Post
This question is closed.
Loading
The authorization code is invalid or has expired