Minor change for client registration documentation
This commit is contained in:
parent
a9b5d07263
commit
1b857387f2
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue