Update topics/client-registration.adoc
This commit is contained in:
parent
70357e5342
commit
5aa0ec6ec0
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue