[keycloak-user] direct access grant

Notarnicola, Mara M.Notarnicola at klopotek.it
Tue Mar 15 09:43:35 EDT 2016

You forgot the client_id

-----Original Message-----
From: keycloak-user-bounces at lists.jboss.org [mailto:keycloak-user-bounces at lists.jboss.org] On Behalf Of daniele.capasso at dnshosting.it
Sent: Tuesday, March 15, 2016 9:43 AM
To: keycloak-user at lists.jboss.org
Subject: [keycloak-user] direct access grant


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

keycloak-user mailing list
keycloak-user at lists.jboss.org

More information about the keycloak-user mailing list