Update topics/client-registration.adoc

This commit is contained in:
Stian Thorgersen 2016-06-28 13:22:03 +02:00
parent 70357e5342
commit 5aa0ec6ec0

View file

@ -149,7 +149,10 @@ String token = "eyJhbGciOiJSUz...";
ClientRepresentation client = new ClientRepresentation();
client.setClientId(CLIENT_ID);
ClientRegistration reg = ClientRegistration.create().url("http://localhost:8080/auth/realms/myrealm/clients").build();
ClientRegistration reg = ClientRegistration.create()
.url("http://localhost:8080/auth", "myrealm")
.build();
reg.auth(Auth.token(token));
client = reg.create(client);