twaldron
twaldron

Reputation: 2752

Okta introspect method returning bad request

trying to post to the introspect method is throwing a bad request error:

"Bad request.  Accept and/or Content-Type headers likely do not match supported values."

here is the url I am hitting

..oauth2/v1/introspect?token_type_hint=access&token={token}&client_id={ClientId}&client_secret={ClientSecret}"

I am setting the content-type and accept headers to "application/json"

If those are incorrect there is no documentation stating what they should be.

Upvotes: 7

Views: 5333

Answers (1)

twaldron
twaldron

Reputation: 2752

Content-Type needed to be application/x-www-form-urlencoded.

Upvotes: 12

Related Questions