<div dir="ltr">Fixed in new docs (<a href="https://keycloak.gitbooks.io/securing-client-applications-guide/content/v/master/topics/client-registration.html">https://keycloak.gitbooks.io/securing-client-applications-guide/content/v/master/topics/client-registration.html</a>).</div><div class="gmail_extra"><br><div class="gmail_quote">On 22 June 2016 at 13:23, Orestis Tsakiridis <span dir="ltr">&lt;<a href="mailto:orestis.tsakiridis@telestax.com" target="_blank">orestis.tsakiridis@telestax.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>All, it seems there is a typo in the Client Registration documentation lying at: <br><br><a href="http://keycloak.github.io/docs/userguide/keycloak-server/html/client-registration.html#d4e1563" target="_blank">http://keycloak.github.io/docs/userguide/keycloak-server/html/client-registration.html#d4e1563</a><br><br></div>Existing snippet:<br><br><div style="margin-left:40px">String initialAccessToken = &quot;eyJhbGciOiJSUzI1NiJ9.eyJqdGkiOiJmMjJmNzQyYy04ZjNlLTQ2M....&quot;;<br><br>ClientRepresentation client = new ClientRepresentation();<br>client.setClientId(CLIENT_ID);<br><br>ClientRegistration reg = ClientRegistration.create().url(&quot;<a href="http://keycloak/auth/realms/myrealm/clients" target="_blank">http://keycloak/auth/realms/myrealm/clients</a>&quot;).build();<br>reg.auth(Auth.token(initialAccessToken));<br><br>client = reg.create(client);<br><br>String registrationAccessToken = client.getRegistrationAccessToken();<br></div><br></div>Corrected snippet:<br><br><div style="margin-left:40px">String initialAccessToken = &quot;eyJhbGciOiJSUzI1NiJ9.eyJqdGkiOiJmMjJmNzQyYy04ZjNlLTQ2M....&quot;;<br><br>ClientRepresentation client = new ClientRepresentation();<br>client.setClientId(CLIENT_ID);<br><br>ClientRegistration reg = ClientRegistration.create().url(&quot;<a href="http://keycloak/auth/realms/myrealm/" target="_blank">http://keycloak/auth/realms/myrealm/</a><b>clients-registrations</b>&quot;).build();<br>reg.auth(Auth.token(initialAccessToken));<br><br>client = reg.create(client);<br><br>String registrationAccessToken = client.getRegistrationAccessToken();<br></div><br></div><br></div>Please confirm and if valid, take care with that. <br><div><br><div><br></div></div></div>
<br>_______________________________________________<br>
keycloak-user mailing list<br>
<a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br></blockquote></div><br></div>