8000 Return 403 when invalidating the rotated client secret without permission by ksquare0608 · Pull Request #55538 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

Return 403 when invalidating the rotated client secret without permission - #55538

Draft
ksquare0608 wants to merge 1 commit into
keycloak:mainfrom
ksquare0608:issue-55391-rotated-secret-403
Draft

ksquare0608 wants to merge 1 commit into
keycloak:mainfrom
ksquare0608:issue-55391-rotated-secret-403

Conversation

@ksquare0608
Copy link
Copy Markdown

Closes #55391

Decisions and assumptions:

  • Removed the catch (RuntimeException) instead of narrowing it: the remaining calls only read or clear client attributes and have no exception worth translating, and KeycloakErrorHandler already returns a generic 500 for unexpected errors without exposing the internal message. No other method in ClientResource uses a catch-all.
  • Added the endpoint to PermissionsTest#clients with manage = true, next to getClientRotatedSecret, since requireConfigure should reject view-clients callers.

I used an AI coding agent (Claude Code) to help investigate and prepare this change, and I have reviewed and understand all of it.

…sion

Closes keycloak#55391

Signed-off-by: Chin-Kang Hsee <134198211+ksquare0608@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Invalidating the rotated client secret returns 500 instead of 403 when the caller lacks permission

1 participant

0