<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 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&#39;m having problems generating an access token.<br>
<br>
$ curl -X POST<br>
<a 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 &quot;Content-Type: application/x-www-form-urlencoded&quot; -d &#39;username=user2&#39;<br>
-d &#39;password=user2&#39; -d &#39;grant_type=password&#39; -d &#39;client_id=app1&#39;<br>
{&quot;error&quot;:&quot;unauthorized_client&quot;}<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&#39;m getting &quot;unauthorized_client&quot; error.<br>
What should I look at?<br>
<br>
Tim<br>
_______________________________________________<br>
keycloak-user mailing list<br>
<a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
<a 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>