Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Okta introspect method returning bad request

Tags:

okta

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.

like image 867
twaldron Avatar asked Feb 02 '17 21:02

twaldron


1 Answers

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

like image 134
twaldron Avatar answered Oct 15 '22 05:10

twaldron