<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    That is enabled on both realm and client.<br>
    <br>
    <div class="moz-cite-prefix">On 12/10/2015 18:51, Fadi Abdin wrote:<br>
    </div>
    <blockquote
cite="mid:CABXXV0S0pJ=KhwG8XMrBZcxTuXgE_riEAyYhtLDbqAct_3VzXg@mail.gmail.com"
      type="cite">
      <div dir="ltr">make sure they Direct Grant API enabled on the
        client and the realm 
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Mon, Oct 12, 2015 at 1:20 PM, Tim
          Dudgeon <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:tdudgeon.ml@gmail.com" target="_blank">tdudgeon.ml@gmail.com</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm having
            problems generating an access token.<br>
            <br>
            $ curl -X POST<br>
            <a moz-do-not-send="true"
href="http://192.168.59.103:8080/auth/realms/Customer1/protocol/openid-connect/token"
              rel="noreferrer" target="_blank">http://192.168.59.103:8080/auth/realms/Customer1/protocol/openid-connect/token</a><br>
            -H "Content-Type: application/x-www-form-urlencoded" -d
            'username=user2'<br>
            -d 'password=user2' -d 'grant_type=password' -d
            'client_id=app1'<br>
            {"error":"unauthorized_client"}<br>
            <br>
             From what I can see everything is set up correctly and
            looks the same<br>
            to another realm/client/user that does work:<br>
            - realm exists and works<br>
            - user exists and can log in to console<br>
            - client has been created in realm<br>
            <br>
            But I'm getting "unauthorized_client" error.<br>
            What should I look at?<br>
            <br>
            Tim<br>
            _______________________________________________<br>
            keycloak-user mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
            <a moz-do-not-send="true"
              href="https://lists.jboss.org/mailman/listinfo/keycloak-user"
              rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>