Repository navigation
Separate AuthZEN resource and context attributes - #55258
Open
Oluwatobi-Mustapha wants to merge 1 commit into
Open
Oluwatobi-Mustapha wants to merge 1 commit into
Oluwatobi-Mustapha wants to merge 1 commit into
Conversation
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the change separating AuthZEN resource properties from request context.
No open issues 🎉
What changed in this PR
This PR addresses #54848 by letting authorization policies distinguish AuthZEN resource properties from request context, while preserving existing unqualified attributes and context-first precedence.
Changes:
- Adds separate
authzen.resource.propertiesandauthzen.contextclaim paths. - Adds tests for source-specific policy evaluation and legacy precedence.
- Documents the reserved
authzenclaim root and compatibility behavior.
| File | Description |
|---|---|
| docs/guides/securing-apps/authzen-authorization.adoc | Explains source-qualified paths and unqualified attribute precedence. |
| authzen/tests/base/src/test/java/org/keycloak/tests/authzen/AuthZenEvaluationTest.java | Tests source separation and compatibility; corrects a resource-properties comment. |
| authzen/services/src/main/java/org/keycloak/authorization/authzen/AuthZenResource.java | Centralizes claim creation and exposes both sources under the reserved root. |
Review effort: Balanced
Closes keycloak#54848 Signed-off-by: Oluwatobi Mustapha <oluwatobimustapha539@gmail.com>
Oluwatobi-Mustapha
force-pushed
the
authzen-attribute-sources
branch
from
November 17, 2026 10:02
c21ce13 to
5bc4674
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #54848
Policies can now read resource properties and request context separately, even when both use the same name. Existing attributes keep their current behavior: when names overlap, the context value takes precedence.