Passing parameters to the /oauth/token endpoint



I'm using the simple-oauth2 NodeJS library to authenticate requests to your API, but I keep getting 401 responses from your /oauth/token endpoint.

I'm wondering if this is caused by the fact that this library does not include parameters in the URL. In step 3 of the authorization code flow as documented here, you seem to imply that parameters should be included as query string arguments as wel as form parameters. Is that true?


Thanks in advance!

1reply Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
  • Solved it. It turns out that simple-oauth2 by default doesn't send parameters as urlencoded form parameters.

    Like 1
Like Follow
  • 3 wk agoLast active
  • 1Replies
  • 77Views
  • 2 Following