8000 Reject UMA requests targeting disabled resource server clients by tkyjovsk · Pull Request #55493 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

Reject UMA requests targeting disabled resource server clients - #55493

Open
tkyjovsk wants to merge 3 commits into
keycloak:mainfrom
tkyjovsk:55384
Open

tkyjovsk wants to merge 3 commits into
keycloak:mainfrom
tkyjovsk:55384

Conversation

@tkyjovsk
Copy link
Copy Markdown
Contributor

Closes #55384.

@tkyjovsk
tkyjovsk requested a review from a team as a code owner November 24, 2026 18:55
Copilot AI balanced review requested due to automatic review settings November 24, 2026 18:55
Copilot AI left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues were identified for the change rejecting UMA authorization requests targeting disabled resource-server clients.

No open issues 🎉

What changed in this PR

This PR addresses #55384 by rejecting UMA authorization requests targeting disabled resource-server clients, preventing issuance of new Requesting Party Tokens (RPTs) for those clients.

Changes:

  • Check that the target client is enabled before resolving its resource server; otherwise return HTTP 400 and record an error event.
  • Add a regression test that creates a permission ticket, disables the resource server, and verifies that authorization is rejected.
File Description
tests/​base/​src/​test/​java/​org/​keycloak/​tests/​authz/​services/​uma/​UmaDisabledResourceServerTest.java Tests rejection of fresh RPT requests after disabling the target client.
services/​src/​main/​java/​org/​keycloak/​authorization/​authorization/​AuthorizationTokenService.java Rejects disabled resource-server clients during UMA authorization.

Review effort: Balanced

@utafrali utafrali left a comment
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean, well-scoped fix that adds a disabled-client check in getResourceServer() following the same error-handling pattern as the existing null-client and null-resource-server guards. The test covers the key scenario (fresh RPT against a disabled resource server) and follows project conventions.

@keycloak-github-bot keycloak-github-bot Bot left a comment
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unreported flaky test detected, please review

@keycloak-github-bot
Copy link
Copy Markdown

Unreported flaky test detected

If the flaky tests below are affected by the changes, please review and update the changes accordingly. Otherwise, a maintainer should report the flaky tests prior to merging the PR.

org.keycloak.testsuite.forms.ResetPasswordTest#resetPasswordTwiceInSecondBrowser

Keycloak CI - Forms IT (chrome)

org.opentest4j.AssertionFailedError: Expected page 'login-login-update-password' to be loaded, but currently on page 'null' after timeout
	at org.junit.jupiter.api.AssertionUtils.fail(AssertionUtils.java:38)
	at org.junit.jupiter.api.Assertions.fail(Assertions.java:138)
	at org.keycloak.testsuite.pages.AbstractPage.waitForPage(AbstractPage.java:63)
	at org.keycloak.testsuite.pages.AbstractPage.assertCurrent(AbstractPage.java:48)
...

Report flaky test

@tkyjovsk
tkyjovsk marked this pull request as draft November 25, 2026 14:16
Signed-off-by: Tomas Kyjovsky <tkyjovsk@ibm.com>
Signed-off-by: Tomas Kyjovsky <tkyjovsk@ibm.com>
Signed-off-by: Tomas Kyjovsky <tkyjovsk@ibm.com>
@tkyjovsk
tkyjovsk marked this pull request as ready for review November 26, 2026 22:03
Copilot AI balanced review requested due to automatic review settings November 26, 2026 22:03
Copilot AI left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are reported for the changes tightening UMA client validation and blocking fresh RPT issuance for disabled resource-server clients.

No open issues 🎉

Review effort: Balanced

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CVE-2026-133225] UMA issues fresh RPTs for disabled resource-server clients

3 participants

0