Question: Stormpath OAuth 2.0 unsupported grant type

Question

Stormpath OAuth 2.0 unsupported grant type

Answers 1
Added at 2016-12-27 20:12
Tags
Question

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
&username=user@example.com
&password=theirPassword

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

Answers to

Stormpath OAuth 2.0 unsupported grant type

nr: #1 dodano: 2016-12-27 20:12

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

grant_type=password&username=user@example.com&password=theirPassword
Source Show
◀ Wstecz