mirror of
https://github.com/keycloak/keycloak.git
synced 2026-06-10 09:30:05 -04:00
|
Some checks are pending
Warm JS Wireit cache / Warm Wireit cache on main (push) Waiting to run
Make users lives easier when they need to update existing client they don't have stored locally.
Instead of doing "get", then modifying the client somewhere and then doing "update", now users can use "edit" command.
How it works (just happy path, read the commit for all the scenarios):
1. `kcadm.sh --v2 client edit test-client`
2. editor is opened (you can configure which one by env vars or using a config command. Interesting: My Fedora Linux seems to have by default set environment variable `EDITOR` to `nano`, so unless I configure the editor explicitly, the `nano` editor is used.
3. use PUT method to apply the user changes
4. print out to user the resulting resource (patched resource)
Simple example:
```bash
mvavrik@fedora:~/sources/keycloak$ kcadm.sh --v2 client edit test
Updating client 'test' ...
{
"uuid" : "3b60ac14-a83b-459f-95fd-4786f8906ade",
"clientId" : "test",
"enabled" : true,
"protocol" : "openid-connect"
}
```
Closes: https://github.com/keycloak/keycloak/issues/47498
Signed-off-by: Michal Vavřík <michal.vavrik@aol.com>
|
||
|---|---|---|
| .. | ||
| admin-ui-ext | ||
| admin-v2 | ||
| pom.xml | ||