Try
curl -d "client_id=account" -d "username=test1" -d
"password=1234t1" -d
"grant_type=password" "
http://localhost:8070/auth/realms/test/protocol/openid-connect/token
On Thu, Aug 30, 2018 at 4:34 AM Ronald Demneri <ronald.demneri(a)amdtia.com>
wrote:
Greetings everyone,
I am testing the possibility to login via curl to the account client in my
test realm and then use the tokens to access another client. I have tried
this:
curl -X POST \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "cache-control: no-cache" \
-d
"grant_type=password&scope=openid&client_id=account&username=test1&password=1234t1"
\
"http://keycloak:8080/auth/realms/test /protocol/openid-connect/token" \
-v
But it gives me:
* upload completely sent off: 81 out of 81 bytes
< HTTP/1.1 400 Bad Request
< Connection: keep-alive
< Content-Type: application/json
< Content-Length: 91
What am I doing wrong and apologies if this question has been asked before.
Keycloak version is 4.1.0.Final
Ronald
_______________________________________________
keycloak-user mailing list
keycloak-user(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user