Minor change for client registration documentation

This commit is contained in:
Bruno Oliveira 2016-01-04 15:09:12 -02:00
parent a9b5d07263
commit 1b857387f2

View file

@ -193,8 +193,8 @@ String initialAccessToken = "eyJhbGciOiJSUzI1NiJ9.eyJqdGkiOiJmMjJmNzQyYy04ZjNlLT
ClientRepresentation client = new ClientRepresentation(); ClientRepresentation client = new ClientRepresentation();
client.setClientId(CLIENT_ID); client.setClientId(CLIENT_ID);
ClientRegistration reg = ClientRegistration.create().url("http://keycloak/auth/realms/myrealm").build(); ClientRegistration reg = ClientRegistration.create().url("http://keycloak/auth/realms/myrealm/clients").build();
reg.auth(initialAccessToken); reg.auth(Auth.token(initialAccessToken));
client = reg.create(client); client = reg.create(client);