Here is the information from debugging my calls to the OAuth page:
[2017-05-10 21:22:42.165] DEBUG Sending post request to
http://XX.XX.XXX.XXX:8080/workflow/oauth2/token with body: {"grant_type":"password","scope":"*","client_id":"ORFAVREOUWRAUGGRQJGTNKDRHKBSETWT","client_secret":"434157704590a695188bf57026369405","username":"pwaller","password":"welcome"} and headers:
http://52.39.212.230:8080/workflow/oauth2/token
{"grant_type":"password","scope":"*","client_id":"ORFAVREOUWRAUGGRQJGTNKDRHKBSETWT","client_secret":"434157704590a695188bf57026369405","username":"pwaller","password":"welcome"}
[2017-05-10 21:22:42.303] INFO POST
http://52.39.212.230:8080/workflow/oauth2/token -- (0.13s) 400 {"error":"invalid_client","error_description":"The client credentials are invalid"} {"date"=>"Wed, 10 May 2017 21:22:42 GMT", "server"=>"Apache/2.4.6 (CentOS) PHP/5.4.16", "x-powered-by"=>"PHP/5.4.16", "access-control-allow-origin"=>"*", "vary"=>"Accept", "cache-control"=>"no-store", "content-length"=>"83", "connection"=>"close", "content-type"=>"application/json"}
It appears to me that the content-type is set to application/json and the body is valid json, includes the grant_type. The user id and password are valid and can log into ProcessMaker. The user is an Administrator.
Any ideas would be appreciated.