Commit Graph
5621 Commits
Author SHA1 Message Date
CopilotGitHubshawkinscopilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
751b203de1 RFC 9440 cert lookup: truncate chain instead of throwing on length exceeded (#46652)
* Fix Rfc9440 cert lookup to truncate chain instead of throwing exception when exceeding limit

closes: #46647

Co-authored-by: shawkins <2475669+shawkins@users.noreply.github.com>

* Change truncation log from warn to debug level

Co-authored-by: shawkins <2475669+shawkins@users.noreply.github.com>

* Validate certificateChainLength >= 0 in Rfc9440ClientCertificateLookupFactory.init

Co-authored-by: shawkins <2475669+shawkins@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: shawkins <2475669+shawkins@users.noreply.github.com>
2026-02-28 14:12:16 +00:00
Stefan GuilhenandGitHub 857b0e6925 Add support for filtering on SCIM endpoints
Closes #46221

Signed-off-by: Stefan Guilhen <sguilhen@redhat.com>
2026-02-27 12:20:01 -03:00
rmartincandPedro Igor 9c6cf57410 Do not use offline sessions in the logout endpoint
Closes #46379

Signed-off-by: rmartinc <rmartinc@redhat.com>
2026-02-27 09:59:27 -03:00
Thomas DarimontandGitHub 2a7495b4f5 Allow specifying max allowed expiration of federated client assertion in the Identity Provider settings (#46629)
* Add support to specify max expiration time for client assertions in Identity Provider settings (#46304, #46626, #46627)

We now support the configuration of max client assertion expiration time for the following providers:
- OIDC Identity Provider
- SPIFFE Identity Provider
- Kubernetes Identity Provider

Added testFederatedClientAssertionMaxExpiration test.
Added UI test for saving and retrieving fedClientAssertionMaxExp for Kubernetes Identity Provider.

Fixes #46304 (SPIFFE)
Fixes #46626 (Kubernetes)
Fixes #46627 (OIDC)

Signed-off-by: Thomas Darimont <thomas.darimont@googlemail.com>

* Move client auth tests to AbstractBaseClientAuthTest

This allows testing base, Kubernetes and Spiffe implementations.

Fixes #46630

Signed-off-by: Thomas Darimont <thomas.darimont@googlemail.com>

---------

Signed-off-by: Thomas Darimont <thomas.darimont@googlemail.com>
2026-02-27 07:05:10 +00:00
Martin KanisandGitHub b7bef85f91 Organization Groups - Identity Provider Mappers (#46592)
Closes #45512

Signed-off-by: Martin Kanis <mkanis@redhat.com>
2026-02-26 13:44:12 +01:00
Vlasta RamikandGitHub 3905186f89 REST API doesn't allow moving org group to root (#46559)
Closes #46455

Signed-off-by: vramik <vramik@redhat.com>
2026-02-26 12:30:17 +01:00
Thomas DieslerandMarek Posolda 8cfef9443d [OID4VCI] Add support for CredentialScopeRepresentation
Signed-off-by: Thomas Diesler <tdiesler@ibm.com>
2026-02-26 09:06:15 +01:00
193a423571 invalid_grant errors now return HTTP 400 (#46528)
Closes #45812


Signed-off-by: Marie Daly <marie.daly1@ibm.com>
Signed-off-by: Marie Daly <mdaly@redhat.com>
Co-authored-by: Ricardo Martin <rmartinc@redhat.com>
2026-02-25 18:03:36 +01:00
391b8b0774 Add v2 admin event support to Client Admin API (#46124)
* Add v2 admin event support to Client Admin API

Introduce AdminEventV2Builder to fire admin events with apiVersion=v2
detail marker, allowing consumers to distinguish v2 API events from v1.

- Add AdminEventV2Builder class for creating v2 admin events
- Modify DefaultClientService to fire v2 events on client create/update
- Pass AdminAuth through API chain for proper event authentication context
- Add tests verifying v2 events contain correct operation type and format

Closes #46123

Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* added github comments

Extended AdminEventBuilder, now accepts AdimPermissionEvaluator instead
of AdminAuth

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

* Refactor admin builder v2, mask sensitive info, improve tests

Signed-off-by: Martin Bartoš <mabartos@redhat.com>
Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* Apply suggestions from code review

Signed-off-by: Martin Bartoš <mabartos@redhat.com>
Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* Apply suggestion from @mabartos

Signed-off-by: Martin Bartoš <mabartos@redhat.com>
Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* fixed imports

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

* fixed merge error

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

* Polish constructors, disable events by default

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

* Public visibility for detail key, add test case for PATCH

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

---------

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
Signed-off-by: Martin Bartoš <mabartos@redhat.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Martin Bartoš <mabartos@redhat.com>
2026-02-25 17:47:30 +01:00
Giuseppe GrazianoandGitHub ebfc294c85 Executor for client uris pattern validation (#46300)
Closes #45645

Signed-off-by: Giuseppe Graziano <g.graziano94@gmail.com>
2026-02-24 16:26:00 +01:00
Vlasta RamikandGitHub 46f648dc95 Ability to retrive subgroups count for organization groups (#46534)
Closes #46445

Signed-off-by: vramik <vramik@redhat.com>
2026-02-24 14:26:49 +01:00
vramikandPedro Igor 4beaaf2ab4 Expose organization group membership for a member
Closes #46454

Signed-off-by: vramik <vramik@redhat.com>
2026-02-24 09:02:53 -03:00
Yike GaoandGitHub 8453022d09 Fix replyTo and from address are not validated
fixed typo and added method for checking replyTo 

Closes #46192

Signed-off-by: Yike Gao <yikegao8@gmail.com>
2026-02-23 22:23:15 +01:00
Ricardo MartinandGitHub 2bd386842a Step up authentication for saml - preview (#44185)
Closes #10155


Signed-off-by: rmartinc <rmartinc@redhat.com>
2026-02-23 19:57:00 +01:00
Pedro IgorandGitHub 3e3a7befd1 Initial code for SCIM core and testsuite (#45978)
Closes #45712

Signed-off-by: Pedro Igor <pigor.craveiro@gmail.com>
2026-02-23 18:22:25 +01:00
Takashi NorimatsuandGitHub 3892b9b5f1 Persistent CIMD (#45285)
closes #45284


Signed-off-by: Takashi Norimatsu <takashi.norimatsu.ws@hitachi.com>
2026-02-23 12:47:35 +01:00
Thomas DieslerandGitHub 54189f8094 [OID4VCI] Revisit and fix /credential_offer_uri endpoint (#46199)
closes #45005


Signed-off-by: Thomas Diesler <tdiesler@ibm.com>
2026-02-23 10:10:58 +01:00
59a7cec07d Improve the events in the docker endpoint
Closes #46469

Signed-off-by: rmartinc <rmartinc@redhat.com>
Signed-off-by: Alexander Schwartz <alexander.schwartz@ibm.com>
Co-authored-by: Alexander Schwartz <alexander.schwartz@ibm.com>
2026-02-20 18:57:44 +01:00
mposolda 2b47045369 Make sure persistent userSession not needed in preAuthorized code grant type
closes #44534

Signed-off-by: mposolda <mposolda@gmail.com>
2026-02-20 12:17:32 +01:00
forkimenjeckayangandGitHub 2d3258a209 [OID4VCI] Disable ldp_vc format and providers to focus on JWT VC and SD-JWT VC (#46485)
closes #44875

Signed-off-by: forkimenjeckayang <forkimenjeckayang@gmail.com>
2026-02-20 09:50:48 +01:00
Thomas DieslerandMarek Posolda 613e55d733 [OID4VCI] Confine test realm setup to TestCase.configureTestRealm()
Signed-off-by: Thomas Diesler <tdiesler@ibm.com>
2026-02-19 16:20:45 +01:00
Peter SkopekandMarek Posolda 4036ddc837 Adding the log to the required action to show the cause of syntax violation of the LDAP policy
Closes #44459

Signed-off-by: Peter Skopek <peter.skopek@ibm.com>
2026-02-19 16:19:04 +01:00
Ricardo MartinandGitHub 743ac24081 Check client is enabled in the docker endpoint
Closes #46462

Signed-off-by: rmartinc <rmartinc@redhat.com>
2026-02-19 14:40:54 +01:00
Marie DalyandGitHub bb49217409 Added RESOURCE_OWNER_PASSWORD_CREDENTIALS_REQUEST - Fixes policy enforcement gap for direct access grant flows (#46283)
Closes #45740


Signed-off-by: Marie Daly <marie.daly1@ibm.com>
2026-02-19 14:31:44 +01:00
Thomas DieslerandMarek Posolda da95f7ec05 [OID4VCI] Attribute did should be added to user profile just if OID4VCI is enabled for the realm
Signed-off-by: Thomas Diesler <tdiesler@ibm.com>
2026-02-19 08:59:49 +01:00
Ricardo MartinandGitHub 4f90ef67f6 Limit the inflating size for the SAML redirect binding
Closes #46372

Signed-off-by: rmartinc <rmartinc@redhat.com>
2026-02-17 18:40:11 +00:00
4253a79eb2 Client or role parsing caching should be realm specific
Closes #46403

Signed-off-by: Pedro Ruivo <1492066+pruivo@users.noreply.github.com>
Co-authored-by: Pedro Ruivo <1492066+pruivo@users.noreply.github.com>
2026-02-17 16:57:38 +01:00
7e00961ee1 Cache evaluation of client roles with dots for role mapper
Closes #43726

Signed-off-by: Pedro Ruivo <1492066+pruivo@users.noreply.github.com>
Co-authored-by: Pedro Ruivo <1492066+pruivo@users.noreply.github.com>
2026-02-17 12:45:37 +01:00
Zorian MotsoandGitHub 8258fceb33 Fix duplicate client-uuid path parameter in OpenAPI spec
Rename {client-uuid} to {targetClientUuid} in RoleContainerResource to
avoid duplicate parameter names when the resource is mounted under
ClientResource. {clientUuid} is not sufficient because code generators
normalise {client-uuid} from the parent path to clientUuid as well.

Closes #46015

Signed-off-by: Zorian Motso <zorianmotso@gmail.com>
2026-02-16 16:28:15 +00:00
418700b4f8 Fix duplicate header in VERIFY_EMAIL flow
Fix #46105

Signed-off-by: Geremia Taglialatela <tagliala.dev@gmail.com>
Co-authored-by: tagliala <556268+tagliala@users.noreply.github.com>
2026-02-16 16:26:22 +01:00
f92c27e26d Make rolling updates for patch releases fully supported and Updated docs, release notes and upgrading guide for zero-downtime patch releases
Closes #45381
Closes #45756

Signed-off-by: Ruchika <ruchika.jha1@ibm.com>
Signed-off-by: Alexander Schwartz <alexander.schwartz@ibm.com>
Co-authored-by: Alexander Schwartz <alexander.schwartz@ibm.com>
2026-02-16 15:11:16 +00:00
Steven HawkinsandGitHub c28cac9db3 fix: ensuring proper error handling for duplicate protocol mappers
closes: #26946

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
2026-02-13 16:33:01 +00:00
19118a097c fix: adding admin role invalidation when a new realm is found (#46019)
* fix: adding admin role invalidation when a new realm is found

closes: #45966

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

* Update model/infinispan/src/main/java/org/keycloak/models/cache/infinispan/RealmCacheSession.java

Co-authored-by: Alexander Schwartz <alexander.schwartz@gmx.net>
Signed-off-by: Steven Hawkins <shawkins@redhat.com>

* adding a comment and a permission tweak for imported realms

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

* checking getShouldUseLightweightToken

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: Alexander Schwartz <alexander.schwartz@gmx.net>
2026-02-13 15:52:52 +01:00
Thomas DieslerandMarek Posolda d2150a19d5 [OID4VCI] Make natural_person configuration available in all formats
Signed-off-by: Thomas Diesler <tdiesler@ibm.com>
2026-02-13 15:30:55 +01:00
Giuseppe GrazianoandMarek Posolda a8418b251d Unique issuer for identity providers
Closes #45747

Signed-off-by: Giuseppe Graziano <g.graziano94@gmail.com>
2026-02-13 08:44:07 +01:00
Thomas DieslerandMarek Posolda 44e7cf2da9 [OID4VCI] Simplify OID4VCAuthorizationDetail handling
Signed-off-by: Thomas Diesler <tdiesler@ibm.com>
2026-02-12 17:09:07 +01:00
vramikandPedro Igor 5a4685909e Ability to add attributes to organization groups
Closes #46263

Signed-off-by: vramik <vramik@redhat.com>
2026-02-12 10:43:18 -03:00
Steven HawkinsandGitHub 115b260a47 fix: normalizing the baseUri to end with / (#46253)
closes: #46235

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
2026-02-12 13:55:07 +01:00
Steven HawkinsandGitHub 27fb8fae5c fix: refining how the junit Keycloak is launched (#46182)
closes: #46160

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
2026-02-11 16:44:43 +01:00
Thomas DieslerandMarek Posolda de0ae92ebe [OID4VCI] Wrong typ value for SD-JWT VC
Signed-off-by: Thomas Diesler <tdiesler@ibm.com>
2026-02-11 08:28:07 +01:00
67bbdf3dd2 Added theme descriptions in the Admin UI
Closes #45909

Signed-off-by: Benjamin DeWeese <bdeweesevans@gmail.com>
Signed-off-by: Alexander Schwartz <alexander.schwartz@ibm.com>
Co-authored-by: Alexander Schwartz <alexander.schwartz@ibm.com>
2026-02-10 21:42:09 +00:00
Pedro IgorandGitHub 295945773e Make sure updates do not allow updating the resource associated with the uma policy (#46154)
Closes #46147

Signed-off-by: Pedro Igor <pigor.craveiro@gmail.com>
2026-02-10 16:42:27 +00:00
Giuseppe GrazianoandGitHub d6f07f27ec User validation in JWT Authorization Grant (#46149)
Closes #46144

Signed-off-by: Giuseppe Graziano <g.graziano94@gmail.com>
2026-02-10 13:09:05 +00:00
Pedro IgorandGitHub 8fc9a98026 Make sure registration tokens are verified before processing registration (#46155)
Closes #46145

Signed-off-by: Pedro Igor <pigor.craveiro@gmail.com>
2026-02-10 14:02:03 +01:00
ValeriaandGitHub 05ff44b8a0 Patch CVE-2026-0707. Add validation on Authorization Header with Bearer, add tests (#45787)
Closes #45649

Signed-off-by: Valeria Epifanova <lerkamandarinka24@gmail.com>
2026-02-10 13:10:29 +01:00
Giuseppe GrazianoandGitHub 176dc8902c Check if idp is enabled for JWT Auth Grant and Federated Client Auth (#46148)
Closes #46146

Signed-off-by: Giuseppe Graziano <g.graziano94@gmail.com>
2026-02-10 13:01:42 +01:00
Marie DalyandGitHub 7d6108d4b9 Redirect Wildcard changes and more https checks to secure-client-executor (#46082)
Closes #45587


Signed-off-by: Marie Daly <marie.daly1@ibm.com>
2026-02-10 13:00:06 +01:00
vramikandPedro Igor 0669a7eb14 Organization group path handling
Closes #46025

Signed-off-by: vramik <vramik@redhat.com>
2026-02-10 08:11:07 -03:00
Thomas DieslerandMarek Posolda b4c1a2a890 [OID4VCI] Revisit and fix OAuthClient.credentialOfferUriRequest()
Signed-off-by: Thomas Diesler <tdiesler@ibm.com>
2026-02-10 11:50:55 +01:00
Ricardo MartinandGitHub f0381f8482 Check SubjectConfirmationData element for bearer type
Closes #45646

Signed-off-by: rmartinc <rmartinc@redhat.com>
2026-02-10 08:20:17 +01:00