<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
0D50Z00008G7V37SAFOkta Classic EngineIntegrationsAnswered2024-04-18T09:28:40.000Z2016-09-01T12:38:40.000Z2018-04-05T20:37:48.000Z

r92uh (r92uh) asked a question.

I have created a test login in Okta to get sample Okta token. I have also created a test API client using that sample Okta Token. But when I tried to hit the API to GET or POST some data, I am getting “Invalid Token Provided” error. Any idea on this?
I have created a test login in Okta to get sample Okta token. I have also created a test API client using that sample Okta Token. But when I tried to hit the API to GET or POST some data, I am getting “Invalid Token Provided” error. Any idea on this?

  • Hi Anusree

    Are you providing the token using the SSWS Authorization header? Can you provide some of your sample code? (you can omit your actual token)

     

    Also, did you check out these instructions or try Postman (a test client) ?

    http://developer.okta.com/docs/api/getting_started/api_test_client.html(http://developer.okta.com/docs/api/getting_started/api_test_client.html)
    Expand Post
  • r92uh (r92uh)

    Hi Gabriel.

     

    Yes, i am using SSWS Authorization header and i am testing it using Postman API client with the instructions given in the same link that you have mentioned above. And i dont have "Open ID Connection" enabled in my Okta developer account where i have created my Okta API token and App. Is that the porblem?
    Expand Post
  • Hi Anusree

     

    >provide some sample code

    In what language? I'm not sure what you're trying to do. Can you explain which API(s) you're calling? Also, can you post your steps (without your token)?

     

    >I don't have "OpenID Connect" enabled

    I'm not sure what that would have to do with it. Are you using OpenID? Or is this a simple API call?
    Expand Post
This question is closed.
Loading
I have created a test login in Okta to get sample Okta token. I have also created a test API client using that sample Okta Token. But when I tried to hit the API to GET or POST some data, I am getting “Invalid Token Provided” error. Any idea on this?