title: Client secret not provided in request error with Keycloak
body: <p>I am facing the following issue after changing Access Type to confidential for the server-side client. It was working fine with public type.</p>
  
  <p>Here is my adapter setting:</p>
  
  <pre><code>&lt;subsystem xmlns="urn:jboss:domain:keycloak:1.1"&gt;
      &lt;secure-deployment name="appWEB.war"&gt;
          &lt;realm&gt;demo&lt;/realm&gt;
          &lt;resource&gt;app&lt;/resource&gt;
          &lt;public-client&gt;true&lt;/public-client&gt;
          &lt;auth-server-url&gt;http://localhost:8180/auth&lt;/auth-server-url&gt;
          &lt;ssl-required&gt;EXTERNAL&lt;/ssl-required&gt;
          &lt;principal-attribute&gt;preferred_username&lt;/principal-attribute&gt;
          &lt;use-resource-role-mappings&gt;true&lt;/use-resource-role-mappings&gt;
              &lt;credential name="secret"&gt;b35f1121-93a4-4483-a70a-0048b95fd250&lt;/credential&gt; 
      &lt;/secure-deployment&gt;
  &lt;/subsystem&gt;
  </code></pre>
  
  <p>Here is the error found in log during login:</p>
  
  <blockquote>
    <p>[Server:node-00] 17:29:06,924 ERROR
    [org.keycloak.adapters.OAuthRequestAuthenticator] (default task-6)
    failed to turn code into token [Server:-node-00] 17:29:06,924 ERROR
    [org.keycloak.adapters.OAuthRequestAuthenticator] (default task-6)
    status from server: 400 [Server:node-00] 17:29:06,924 ERROR
    [org.keycloak.adapters.OAuthRequestAuthenticator] 
    {"error":"unauthorized_client","error_description":"Client secret not provided in request"}</p>
  </blockquote>
  
  <p>Any thoughts? </p>