).
On 22 June 2016 at 13:23, Orestis Tsakiridis <
orestis.tsakiridis(a)telestax.com> wrote:
All, it seems there is a typo in the Client Registration
documentation
lying at:
http://keycloak.github.io/docs/userguide/keycloak-server/html/client-regi...
Existing snippet:
String initialAccessToken =
"eyJhbGciOiJSUzI1NiJ9.eyJqdGkiOiJmMjJmNzQyYy04ZjNlLTQ2M....";
ClientRepresentation client = new ClientRepresentation();
client.setClientId(CLIENT_ID);
ClientRegistration reg = ClientRegistration.create().url("
http://keycloak/auth/realms/myrealm/clients").build();
reg.auth(Auth.token(initialAccessToken));
client = reg.create(client);
String registrationAccessToken = client.getRegistrationAccessToken();
Corrected snippet:
String initialAccessToken =
"eyJhbGciOiJSUzI1NiJ9.eyJqdGkiOiJmMjJmNzQyYy04ZjNlLTQ2M....";
ClientRepresentation client = new ClientRepresentation();
client.setClientId(CLIENT_ID);
ClientRegistration reg = ClientRegistration.create().url("
http://keycloak/auth/realms/myrealm/*clients-registrations*").build();
reg.auth(Auth.token(initialAccessToken));
client = reg.create(client);
String registrationAccessToken = client.getRegistrationAccessToken();
Please confirm and if valid, take care with that.
_______________________________________________
keycloak-user mailing list
keycloak-user(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user