Skip to content

Add event detail when using rotated password to authenticate the client - #51545

Open
rmartinc wants to merge 2 commits into
keycloak:mainfrom
rmartinc:issue-51528
Open

Add event detail when using rotated password to authenticate the client#51545
rmartinc wants to merge 2 commits into
keycloak:mainfrom
rmartinc:issue-51528

Conversation

@rmartinc

@rmartinc rmartinc commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Closes #51528

Adding a new detail for the client authentication when the rotated secret is used. I also migrated the ClientAuthSecretSignedJWTTest class.

Closes keycloak#51528

Signed-off-by: rmartinc <rmartinc@redhat.com>
Copilot AI balanced review requested due to automatic review settings August 7, 2026 15:03
@rmartinc
rmartinc requested review from a team as code owners August 7, 2026 15: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.

Pull request overview

Adds event metadata identifying authentication with rotated client secrets across standard and JWT client authentication.

Changes:

  • Adds client_auth_detail=rotated_secret to relevant events.
  • Adds coverage for primary and rotated secrets.
  • Migrates and shares client-secret rotation test utilities.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
testsuite/.../ClientAuthSecretSignedJWTTest.java Removes legacy test.
tests/base/.../ClientAuthSecretSignedJWTTest.java Migrates and extends JWT tests.
tests/base/.../ClientSecretRotationUtils.java Adds shared rotation utilities.
tests/base/.../ClientSecretRotationTest.java Verifies event details.
services/.../JWTClientSecretAuthenticator.java Records rotated JWT secret usage.
services/.../ClientIdAndSecretAuthenticator.java Records rotated secret usage.
server-spi-private/.../ClientSecretConstants.java Defines rotated-detail value.
server-spi-private/.../Details.java Defines event-detail key.

@mabartos mabartos left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

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.

Authentication events should distinguish primary vs rotated client secret

3 participants