[keycloak-user] direct access grant

daniele.capasso at dnshosting.it daniele.capasso at dnshosting.it
Tue Mar 15 04:43:05 EDT 2016


Hi,

I try to implements a direct access grant like a example
https://keycloak.github.io/docs/userguide/keycloak-server/html/direct-access-grants.html

My client access type is confidential.

On HttpResponse response = client.execute(post);
I receive
HTTP/1.1 400 Bad Request [Connection: keep-alive, X-Powered-By: 
Undertow/1, Server: WildFly/9, Transfer-Encoding: chunked, Content-Type: 
application/json, Date: Tue, 15 Mar 2016 08:34:36 GMT] 
org.apache.http.conn.BasicManagedEntity at 7e3c3f85

this is my call
POST /auth/realms/master/protocol/openid-connect/token HTTP/1.1
[Authorization: Basic YWRtaW46ZGFuaWVsZQ==]
Content-Type: application/x-www-form-urlencoded; charset=UTF-8

this is my form params:
[grant_type=password, username=a, password=a]

What is wrong?

Thank you
Daniele



More information about the keycloak-user mailing list