<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"><<a href="mailto:tdudgeon.ml@gmail.com" target="_blank">tdudgeon.ml@gmail.com</a>></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 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 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>