title: Obtaining an access token via cURL
body: <p>Simple question:</p>
  
  <p>Why does the following code work... (it returns the access token just fine)</p>
  
  <pre><code>curl --data "grant_type=client_credentials&amp;client_id=synchronization_tool&amp;client_secret=8f6a6e73-66ca-4f8f-1234-ab909147f1cf" http://localhost:8080/auth/realms/master/protocol/openid-connect/token 
  </code></pre>
  
  <p>And this one doesn't?</p>
  
  <pre><code>curl -d  '{"grant_type":"client_credentials","client_secret":"8f6a6e73-66ca-4f8f-1234-ab909147f1cf","client_id":"synchronization_tool"}' http://localhost:8080/auth/realms/master/protocol/openid-connect/token -H "Content-Type: application/json"
  </code></pre>
  
  <p>It gives gives me:</p>
  
  <pre><code>"error":"invalid_request","error_description":"Missing form parameter: grant_type"}
  </code></pre>
  
  <p><strong>Aren't they supposed to be two completely analogous requests?</strong> </p>