<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Yes, thank you. That was it.<br>
    Tim<br>
    <br>
    <div class="moz-cite-prefix">On 13/10/2015 07:16, Stian Thorgersen
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAJgngAfSvoi-QqFGLvjQ-N0e3ykvCbsQUCtgUVO4CjmGQnG-2g@mail.gmail.com"
      type="cite">
      <div dir="ltr">Is it a confidential client? If so you must include
        the clientSecret as well</div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On 12 October 2015 at 22:04, 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">
            <div bgcolor="#FFFFFF" text="#000000"> That is enabled on
              both realm and client.
              <div>
                <div class="h5"><br>
                  <br>
                  <div>On 12/10/2015 18:51, Fadi Abdin wrote:<br>
                  </div>
                  <blockquote 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"><a class="moz-txt-link-abbreviated" href="mailto:tdudgeon.ml@gmail.com">tdudgeon.ml@gmail.com</a></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"
                            target="_blank">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>
                </div>
              </div>
            </div>
            <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>