title: Keycloak Missing form parameter: grant_type
body: <p>I have keycloak standalone running on my local machine.</p>
  <p>I created new realm called 'spring-test', then new client called 'login-app'</p>
  <p>According to the rest documentation:</p>
  <pre><code>POST: http://localhost:8080/auth/realms/spring-test/protocol/openid-connect/token
  
  {
      &quot;client_id&quot;: &quot;login-app&quot;,
      &quot;username&quot;: &quot;user123&quot;,
      &quot;password&quot;: &quot;pass123&quot;,
      &quot;grant_type&quot;: &quot;password&quot;
  }
  </code></pre>
  <p>should give me the jwt token but I get bad request with response</p>
  <pre><code>{
      &quot;error&quot;: &quot;invalid_request&quot;,
      &quot;error_description&quot;: &quot;Missing form parameter: grant_type&quot;
  }
  </code></pre>
  <p>I am assuming that something is missing in my configuration.</p>
  <p>EDIT:
  I was using json body but it should be <code>application/x-www-form-urlencoded</code>:
  the following body works:</p>
  <pre><code>token_type_hint:access_token&amp;token:{token}&amp;client_id:{client_id}&amp;client_secret:{client_secret}
  </code></pre>