[keycloak-user] Typo in Client Registration documentation
Stian Thorgersen
sthorger at redhat.com
Tue Jun 28 07:23:04 EDT 2016
Fixed in new docs (
https://keycloak.gitbooks.io/securing-client-applications-guide/content/v/master/topics/client-registration.html
).
On 22 June 2016 at 13:23, Orestis Tsakiridis <
orestis.tsakiridis at 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-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.
>
>
>
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20160628/fd2974ac/attachment.html
More information about the keycloak-user
mailing list