Stormpath OAuth 2.0 unsupported grant type

194 views Asked by At

Per Stormpath documentation, for the password grant_type, all one would need to do is make a post request like below:

POST /oauth/token
Host: myapi.com
Accept: application/json
Content-Type: application/x-www-form-urlencoded

grant_type=password
&[email protected]
&password=theirPassword

However, this does not work and returns "unsupported_grant_type". In my configuration, password grant is enabled. What am I missing?

1

There are 1 answers

3
Jared Lovin On BEST ANSWER

Figured it out, the request body had to be on one line

grant_type=password&[email protected]&password=theirPassword