1
0
mirror of https://github.com/keycloak/keycloak.git synced 2026-10-23 19:29:23 +03:00

202 Commits

Author SHA1 Message Date
vramik
e203767c06 Service account user ID available on client representation instead of exposing separate endpoint returning whole user representation
Closes #54047

Signed-off-by: vramik <vramik@redhat.com>
2026-10-20 10:03:04 -03:00
Stan Silvert
c409798bfc Filter user session and consent client data by client view permission
Viewing a user's sessions, offline sessions and consents only required
permission to view the user, so an admin without view permission on a
client could still read its UUID, clientId and the user's grants for it.
The same leak existed in the Admin UI sessions list and in the other
clients listed in a client's session endpoints.

Fixes #50981

Signed-off-by: Stan Silvert <ssilvert@redhat.com>
Signed-off-by: Tomas Kyjovsky <tkyjovsk@ibm.com>
Co-authored-by: Tomas Kyjovsky <tkyjovsk@ibm.com>
2026-10-16 19:30:01 +02:00
vramik
c104900549 Treat the admin-permissions client as an internal client
Closes #51630

Co-authored-by: waterWang <waterwang@users.noreply.github.com>
Signed-off-by: vramik <vramik@redhat.com>
2026-10-14 08:02:36 -03:00
Michal Vavřík
4613613012 fix: rename internal Keycloak admin client based on Jackson 3 (#53882)
closes: https://github.com/keycloak/keycloak/issues/53830

Signed-off-by: Michal Vavřík <dev@michalvavrik.net>
2026-10-13 14:46:55 +02:00
Stan Silvert
0b261fa597 Filter authentication flow usage by client and IdP view permissions (#53315)
* Filter authentication flow usage by client and IdP view permissions

The Admin UI authentication-flow endpoints only require permission to
view authentication flows, which view-realm grants. They reported every
client and identity provider bound to a flow, so an admin without
view-clients or view-identity-providers could enumerate clients and
providers that the regular admin endpoints hide from them.

Fixes #50983

Signed-off-by: Stan Silvert <ssilvert@redhat.com>
Assisted-by: Claude Opus 5.5

* Test flow usage filtering with fine-grained client permissions

The existing tests only covered admins with no client access or with
view-clients, so they would still pass if filtering ran after the
summary cap or after paging. Grant view on a single client through
fine-grained admin permissions, with more hidden clients sorting ahead
of it than the cap and page size, so both endpoints must filter first.

Fixes #50983

Signed-off-by: Stan Silvert <ssilvert@redhat.com>
Assisted-by: Claude Opus 5.5

---------

Signed-off-by: Stan Silvert <ssilvert@redhat.com>
2026-09-30 14:28:45 -04:00
Steven Hawkins
186b335e34 fix: removing the stripping of the signingCertificate (#53209)
closes: #53117

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
2026-09-29 17:42:04 +02:00
Steven Hawkins
9361b5ba21 fix: re-using the AdminRoot authentication (#53062)
* fix: re-using the AdminRoot authentication

also making the mutative operation checks consistent

closes: #52099

Signed-off-by: Steve Hawkins <shawkins@redhat.com>

* addressing review comments

Signed-off-by: Steve Hawkins <shawkins@redhat.com>

* existence is checked by the rest layer

Signed-off-by: Steve Hawkins <shawkins@redhat.com>

---------

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
2026-09-29 11:10:21 +02:00
Michal Vavřík
e4caff2843 fix: generated admin api v2 doc should show only searachable fields (#53233)
closes: https://github.com/keycloak/keycloak/issues/51799

Signed-off-by: Michal Vavřík <dev@michalvavrik.net>
2026-09-28 11:45:00 -04:00
Shatrughan Rai
6688a3d63f Admin v2: Mask client secrets for view-only users (#52731)
* Admin v2: Mask client secrets for view-only users

When a user lacks manage permission on a client, strip client secrets
from GET /clients/{client} and GET /clients responses to match v1 behavior.

Closes #52197

Signed-off-by: Shatrughan Rai <polyglot.dev@outlook.com>

# Conflicts:
#	rest/admin-v2/services/src/main/java/org/keycloak/services/client/DefaultClientService.java

* Refactor getClientListSecretMaskedForViewOnly test

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Shatrughan Rai <polyglot.dev@outlook.com>

* Fix: test scope

 fixes an unclosed Stream in the authorization test by wrapping it
 in try-with-resources, matching the pattern used in tests.

 Fixes: keycloak/keycloak#52197

Signed-off-by: Shatrughan Rai <polyglot.dev@outlook.com>

* moving the fix to the new client resource type

Signed-off-by: Steve Hawkins <shawkins@redhat.com>

---------

Signed-off-by: Shatrughan Rai <polyglot.dev@outlook.com>
Signed-off-by: Steve Hawkins <shawkins@redhat.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Steve Hawkins <shawkins@redhat.com>
2026-09-25 17:03:13 +00:00
Stefan Guilhen
a7911723d0 Avoid unnecessary event builder cloning, add test coverage
Signed-off-by: Stefan Guilhen <sguilhen@redhat.com>
2026-09-23 11:42:04 -03:00
alehhu
b49c979c69 fix(admin-ui-ext): correctly group deleted composite role events
Signed-off-by: alehhu <159355663+alehhu@users.noreply.github.com>
2026-09-23 11:42:04 -03:00
alehhu
5afb16e3ec fix(admin-ui-ext): separate realm and client roles in admin events
Signed-off-by: alehhu <159355663+alehhu@users.noreply.github.com>
2026-09-23 11:42:04 -03:00
alehhu
8ae252ed40 fix(admin-ui-ext): include representation in role mapping delete events
Closes #51459

Signed-off-by: alehhu <159355663+alehhu@users.noreply.github.com>
2026-09-23 11:42:04 -03:00
Steven Hawkins
63f8a6dbb8 fix: allowing for complex attributes to specify metadata (#53077)
closes: #51796

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
2026-09-22 15:57:51 -04:00
Steven Hawkins
8ccf3887c7 refactor: remove clientdefaultservice / move logic to the type provider (#52304)
closes: #51326

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
Signed-off-by: Steven Hawkins <shawkins@redhat.com>
2026-09-18 11:40:42 -03:00
Stefan Guilhen
a5f96e294e Use correlated EXISTS subqueries for multivalued attribute filters
Closes #51805

Signed-off-by: Stefan Guilhen <sguilhen@redhat.com>
2026-09-14 10:49:52 -03:00
Steven Hawkins
c45e451b0d refactor: migrating more logic to the type provider (#51910)
closes: #51326

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
2026-08-26 19:26:50 +00:00
Steven Hawkins
1346f48711 fix: renaming the admin client tests module for use by the operator (#51675)
closes: #50598

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
2026-08-24 15:14:32 -04:00
Martin Bartoš
f4e620e38c Mark the Client Secret Rotation feature as supported (#51891)
* Mark the Client Secret Rotation feature as supported

Closes #51888

Signed-off-by: Martin Bartoš <mabartos@redhat.com>

* Update docs/documentation/release_notes/topics/26_8_0.adoc

Co-authored-by: Ricardo Martin <rmartinc@redhat.com>
Signed-off-by: Martin Bartoš <mabartos@redhat.com>

---------

Signed-off-by: Martin Bartoš <mabartos@redhat.com>
Co-authored-by: Ricardo Martin <rmartinc@redhat.com>
2026-08-21 13:13:35 +02:00
Steven Hawkins
daada5dda1 refactor: converts all existing queryability over to scim (#51758)
closes: #51326

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
2026-08-18 15:46:23 -04:00
Ricardo Martin
6d95a8addd Integrate client secret rotation with client admin api v2 (#51615)
Closes #51535
Closes #51527

Signed-off-by: rmartinc <rmartinc@redhat.com>
2026-08-18 09:23:23 -04:00
Martin Kanis
6bc8a798ef Admin UI extension effective-role endpoints disclose hidden composite roles
Closes #50990

Signed-off-by: Martin Kanis <mkanis@ibm.com>
2026-08-18 10:08:06 -03:00
Steven Hawkins
64ce6919f5 Next refactoring of v2 to scim logic - removing the mapper classes (#51695)
* refactor: adding all fields to Schema classes

closes: #51326

Signed-off-by: Steve Hawkins <shawkins@redhat.com>

* removing the model mapper classes

Signed-off-by: Steve Hawkins <shawkins@redhat.com>

---------

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
2026-08-14 14:37:12 -04:00
James Gore
dbee1086c9 Align SCIM attribute schema caseExact defaults with RFC 7643
Closes #51593

Signed-off-by: James Gore <83005220+thejamesgore@users.noreply.github.com>
2026-08-14 11:37:19 -03:00
Steven Hawkins
207b657d5b fix: smaller scope of an initial refactoring to bridge scim and admin v2 (#51456)
closes: #51326

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
Signed-off-by: Steven Hawkins <shawkins@redhat.com>
2026-08-12 12:31:26 +00:00
Stefan Guilhen
738a75dfff Parse SCIM filter once per request instead of twice
- cache the parsed FilterContext on SearchRequest

Closes #51403

Signed-off-by: Stefan Guilhen <sguilhen@redhat.com>
2026-08-11 07:19:44 -03:00
Michal Vavřík
c1cfde7d5e introduce a new keycloak admin client based on jackson 3 (#50848)
Closes: https://github.com/keycloak/keycloak/issues/48216

Signed-off-by: Michal Vavřík <dev@michalvavrik.net>
2026-08-05 16:13:56 +02:00
Erik Jan de Wit
3b354c6347 Added default non-endpoint methods (#51327)
* Added default non-endpoint methods

fixes: #50221
Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* changed types

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

---------

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
2026-08-04 09:00:08 -04:00
Copilot
504ef96bad Fix SAML v2 API: null/omitted string attributes now remove model attributes (#51252)
* Initial plan

* Fix SAML null attribute removal in SAMLClientModelMapper

When a SAML client attribute is set to null (via PATCH with explicit null
or PUT omitting the field), the v2 mapper now removes the corresponding
model attribute instead of silently ignoring the null value.

Previously, `setAttributeIfNotNull` and `setBooleanAttributeIfNotNull`
would skip null values, leaving stale attributes (e.g. signingCertificate)
in place. This was a security concern since an administrator who PATCHed
`signingCertificate: null` would receive a 200 but the old certificate
would still be trusted for SAML signature verification.

Closes #51213

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2026-08-03 17:44:51 +02:00
Erik Jan de Wit
b2245276d2 null or empty description no longer duplicates allowed fields
fixes: #50860

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
2026-08-02 04:26:11 +02:00
Erik Jan de Wit
cd0b33e528 scim prototype (#50324)
* initial version

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* added sort to jpa

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* added timestamps

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* PR review comments

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* PR review

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

---------

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
2026-07-27 18:19:22 +00:00
Vishal Kumar Singh
cab9b92fba Link authentication flow UsedBy clients to client settings (#48841)
* fix(admin-ui): link authentication flow UsedBy clients to client settings

Signed-off-by: Vishal Kumar Singh <vishal.kr.singh2021@gmail.com>

* fix(admin-ui): enrich authentication UsedBy client payloads with internal ids

Extend ui-ext /flows UsedBy for SPECIFIC_CLIENTS with clientRefs (realm internal id plus clientId).
Return the same shape from paginated authentication-management used-by clients rows.
Drop clients.find resolution from UsedBy.tsx.

Signed-off-by: Vishal Kumar Singh <vishal.kr.singh2021@gmail.com>

* fix(admin-ui): format used-by client links

Signed-off-by: Vishal Kumar Singh <vishal.kr.singh2021@gmail.com>

* fix(admin-ui): clarify used-by references

Signed-off-by: Vishal Kumar Singh <vishal.kr.singh2021@gmail.com>

---------

Signed-off-by: Vishal Kumar Singh <vishal.kr.singh2021@gmail.com>
2026-07-25 08:11:55 +00:00
Arnab Nandy
1aac3fe641 #50798 Apply protocol defaults when creating clients through Admin AP… (#50801)
* Apply protocol defaults in Admin API v2

Reuse protocol factory defaults during v2 client creation and cover minimal OIDC and SAML clients.

Closes #50798

Signed-off-by: Arnab Nandy <arnab_nandy7@yahoo.com>

* Preserve SAML omissions for registration policies

Signed-off-by: Arnab Nandy <arnab_nandy7@yahoo.com>

* Preserve secretless OIDC authentication

Signed-off-by: Arnab Nandy <arnab_nandy7@yahoo.com>

* Preserve explicitly supplied OIDC secrets

Signed-off-by: Arnab Nandy <arnab_nandy7@yahoo.com>

---------

Signed-off-by: Arnab Nandy <arnab_nandy7@yahoo.com>
2026-07-21 15:21:02 +02:00
Vlasta Ramik
e6efeab2fd Keycloak Admin UI Extension brute-force-user User Disclosure via search=id: under FGAP v2
Closes #50569

Signed-off-by: vramik <vramik@redhat.com>
2026-07-14 12:15:17 +02:00
Steven Hawkins
c3a7902dba fix: removing temporary client creation in favor of a simple clientmodel (#50744)
closes: #50489

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
2026-07-13 13:11:20 +02:00
Erik Jan de Wit
fc5380887a decouple ListOptions from Client fields (#50693)
* decouple ListOptions from Client fields

Introduce a resource-agnostic SortField marker interface + a
SortFieldResolver<F> functional interface, make SortOption generic over
F extends SortField, and split ListOptions sort parsing into two phases

fixes: #50558

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* fix rebase

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* use cache map to lookup enum fields

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

---------

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
2026-07-09 16:58:45 -04:00
Erik Jan de Wit
48a24b4632 make uuid unmodified more generic (#50160)
* make uuid unmodified more generic

fixes: #50159

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
Signed-off-by: Steve Hawkins <shawkins@redhat.com>
Co-authored-by: Steve Hawkins <shawkins@redhat.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-07-08 17:47:18 +00:00
Erik Jan de Wit
8dafd38823 added time to sortable fields (#50511)
* added time to sortable fields

fixes: #48774
Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* use run on server

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* changed client id to be sure it's not using default sort option

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

---------

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
2026-07-08 10:30:35 -04:00
Erik Jan de Wit
0023ce7610 cache parsing of sort to enum (#50568)
* cache parsing of sort to enum

fixes: #50562
Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* pr review and test

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

---------

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
2026-07-07 15:00:33 -04:00
Erik Jan de Wit
f4c3f4da05 updated filter parametes to only work on specific path (#50571)
fixes: #50563

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
2026-07-07 14:09:07 +02:00
Erik Jan de Wit
8a0e7c8896 removed dead code (#50566)
fixes: #50560

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
2026-07-03 17:37:52 +02:00
Marek Posolda
fae0aef64a Consider case-sensitivity when validating prohibited schemes of client URIs (#694)
closes #50347
Closes #CVE-2026-9086

Signed-off-by: mposolda <mposolda@gmail.com>
(cherry picked from commit 32cdceb80a)
2026-07-01 10:48:45 +02:00
Erik Jan de Wit
10ca767163 added created and last modified timestamps (#49867)
* added created and last modified timestamps

fixes: #48774
Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Erik Jan de Wit <edewit@redhat.com>

* moved update to jpa level

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* relax tests

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* moved created to pre-persist

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* fixed PR review comments

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* PR review

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

---------

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
Signed-off-by: Erik Jan de Wit <edewit@redhat.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-06-29 16:38:59 +00:00
Muhammed Oğuz
0886f93710 Return consistent error when deleting Keycloak-managed clients (#49675)
Add the admin-permissions and _system clients to Constants.defaultClients so the existing ClientManager.isInternalClient check in removeClient blocks their deletion, returning a 400 "Could not delete client" like the other built-in clients (account, realm-management, etc.). This fixes the admin-permissions client previously returning "unknown_error" on the v1 Admin API.

Closes #49674

Signed-off-by: Muhammed Oguz <muhammed@keymate.io>
2026-06-29 16:52:22 +02:00
Peter Zaoral
85cdb68de8 Generate queryable fields documentation from code (#50276)
* Generate queryable fields documentation from code

Closes #50087

Signed-off-by: Peter Zaoral <pzaoral@redhat.com>

* Generate queryable fields documentation from code

Closes #50087

Signed-off-by: Peter Zaoral <pzaoral@redhat.com>

---------

Signed-off-by: Peter Zaoral <pzaoral@redhat.com>
2026-06-29 12:13:13 +02:00
Erik Jan de Wit
f32ad5a142 Add sort parameters to Client Admin API v2 (#49872)
* Add sort parameters to Client Admin API v2

Introduce sortBy and sortOrder query parameters for client list
queries without changing the existing fields parameter behavior.

Closes #49171

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* removed unused schema and added a comment on the name attribute

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* removed some dead code

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* PR comments

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* added link

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* renamed

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* Update rest/admin-v2/api/src/main/java/org/keycloak/admin/api/ListOptions.java

Co-authored-by: Peter Zaoral <pepo48@gmail.com>
Signed-off-by: Erik Jan de Wit <edewit@redhat.com>
Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* changed to use combined sort field that has field and direction

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* PR review

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* fixed null field handling

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* moved parsing logic to ListOptions

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* made allowed fields dynamic

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Erik Jan de Wit <edewit@redhat.com>

* fix merge error

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

---------

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
Signed-off-by: Erik Jan de Wit <edewit@redhat.com>
Co-authored-by: Peter Zaoral <pepo48@gmail.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-06-25 11:39:38 +02:00
Peter Zaoral
2c1fad5d2b Document querying syntax (#50021)
* Document querying syntax

Closes #49724

Signed-off-by: Peter Zaoral <pzaoral@redhat.com>

* Document querying syntax

Closes #49724

Signed-off-by: Peter Zaoral <pzaoral@redhat.com>

* Document querying syntax

Closes #49724

Signed-off-by: Peter Zaoral <pzaoral@redhat.com>

* Document querying syntax

Closes #49724

Signed-off-by: Peter Zaoral <pzaoral@redhat.com>

---------

Signed-off-by: Peter Zaoral <pzaoral@redhat.com>
2026-06-23 19:39:39 +02:00
Erik Jan de Wit
149e3a4f9c initial server side pagination client v2 (#49638)
* initial server side pagination client v2

fixes: #49589
Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* fixed pr review comments

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* PR review comments

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* making it one based

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* Revert "making it one based"

This reverts commit 2068ce3989debf233eb0f7f43311e632641a965b.

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* PR comments

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* limit must be greater then 0

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* changed to use api instead of query

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* removed httpclient tests

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Erik Jan de Wit <edewit@redhat.com>
Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

---------

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
Signed-off-by: Erik Jan de Wit <edewit@redhat.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-06-23 10:53:09 +02:00
Michal Vavřík
aca609c1e4 Client CLI v2: move connection options to root, impl. list projection and more (#49997)
- This PR addresses remaining refinements for Keycloak 26.7.0 together, as they are all touching same areas and we are on schedule
- Closes: https://github.com/keycloak/keycloak/issues/47497
- Closes: https://github.com/keycloak/keycloak/issues/47493
- Closes: https://github.com/keycloak/keycloak/issues/47496
- Minor fixes:
  - Enum values must listed in the option help
  - Editor must appear in the `config` command help
  - help command must be invoked regardless of its position for the root command and `config` command to aling with the rest of v2 commands and also it makes sense to show help for commands like `kcadm.sh --v2 --help client` and `--v2 config --help editor`, for we show `--help` in the autocomplete

 Only for testing this with `999.0.0-SNAPSHOT`, if you previously had a descriptor with the `999.0.0-SNAPSHOT` version, I recommend to login first (use `config credentials`) so that you have updated descriptor first (and thus, correct help).

Signed-off-by: Michal Vavřík <michal.vavrik@aol.com>
2026-06-19 19:40:52 +02:00
Steven Hawkins
c7d38cf030 fix: switching to a string for the fields (#50094)
* fix: switching to a string for the fields

closes: #48734

Signed-off-by: Steve Hawkins <shawkins@redhat.com>

* Apply suggestions from code review

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Steven Hawkins <shawkins@redhat.com>

* further suggestions and removing the request filter

Signed-off-by: Steve Hawkins <shawkins@redhat.com>

---------

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
Signed-off-by: Steven Hawkins <shawkins@redhat.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-06-18 17:42:26 +02:00