[keycloak-user] Typo in Client Registration documentation

Orestis Tsakiridis orestis.tsakiridis at telestax.com
Wed Jun 22 07:23:03 EDT 2016


All, it seems there is a typo in the Client Registration documentation
lying at:

http://keycloak.github.io/docs/userguide/keycloak-server/html/client-registration.html#d4e1563

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20160622/4c73549d/attachment.html 


More information about the keycloak-user mailing list