8000 Make OIDCIdentityProvider.BROKER_NONCE_PARAM public by QuellcodeWanderer · Pull Request #54741 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

Make OIDCIdentityProvider.BROKER_NONCE_PARAM public - #54741

Merged
ahus1 merged 1 commit into
keycloak:mainfrom
QuellcodeWanderer:broker-nonce-param-public
Nov 6, 2026
Merged

ahus1 merged 1 commit into
keycloak:mainfrom
QuellcodeWanderer:broker-nonce-param-public

Conversation

@QuellcodeWanderer
Copy link
Copy Markdown
Contributor

I chose public over protected to match the other constants in OIDCIdentityProvider, which are all public. The value is also stored in the authentication session and in the BrokeredIdentityContext, so code outside the subclass hierarchy, such as authenticators or mappers, may need to read it as well.

Only the visibility changes; the constant's value and all nonce handling stay as they are. I did not add a test, because there is no new behaviour to cover.

Closes #54740

@QuellcodeWanderer
QuellcodeWanderer requested a review from a team as a code owner November 6, 2026 08:34
Copilot AI balanced review requested due to automatic review settings November 6, 2026 08:34
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

There are no active review issues for the change exposing the OIDC broker nonce key for reuse.

No open issues 🎉

What changed in this PR

Exposes the OIDC broker nonce key for reuse by custom providers, authenticators, and mappers, addressing #54740 without changing nonce handling.

Changes:

  • Makes BROKER_NONCE_PARAM public while preserving its value and static final modifiers.
File Description
services/​src/​main/​java/​org/​keycloak/​broker/​oidc/​OIDCIdentityProvider.java Changes the nonce constant’s visibility from private to public.

Review effort: Balanced

Closes keycloak#54740

Signed-off-by: Maximilian Brodda <QuellcodeWanderer@users.noreply.github.com>
@QuellcodeWanderer
QuellcodeWanderer force-pushed the broker-nonce-param-public branch from 6caaa8a to 64a578c Compare November 6, 2026 13:15
@ahus1
ahus1 enabled auto-merge (squash) November 6, 2026 20:17
@ahus1
ahus1 merged commit d4d5554 into keycloak:main Nov 6, 2026
96 checks passed
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.

Make OIDCIdentityProvider.BROKER_NONCE_PARAM public

3 participants

0