Im not exactly the words best programer but not an idiot either. I must say at a minimum its confusing when you have password= and =password in your example. Do I replace the secret with the password or the password with the password?
This is what I get...
< HTTP/1.1 502 Bad Gateway
< Content-Length: 468
< nnCoection: close
< Content-Type: text/html; charset=iso-8859-1
< Date: Thu, 26 May 2016 02:14:45 GMT
< Connection: close
<
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>502 Proxy Error</title>
</head><body>
<h1>Proxy Error</h1>
<p>The proxy server received an invalid
response from an upstream server.<br />
The proxy server could not handle the request <em><a href="/oauth/token">POST /oauth/token</a></em>.<p>
Reason: <strong>Error reading from remote server</strong></p></p>
<hr>
</body></html>
* Closing connection #0