title: Keycloak unable to get access token
body: <p>I'm trying to use <code>AuthzClient</code> to obtain an access token from a public client in my Spring app.</p>
  
  <p>Here is the code:</p>
  
  <pre><code>AuthzClient authzClient = AuthzClient.create();
  AuthorizationRequest request = new AuthorizationRequest();
  AuthorizationResponse response = authzClient.authorization(username, password)
                                  .authorize(request);
  String token = response.getToken();
  </code></pre>
  
  <p>But I keep getting this error message:</p>
  
  <blockquote>
    <p>org.keycloak.authorization.client.util.HttpResponseException: Unexpected response from server: 400 / Bad Request / Response from server: {"error":"invalid_request","error_description":"Client does not support permissions"}</p>
  </blockquote>
  
  <p>Can someone please help me figure out what I'm doing wrong?</p>