Add design proposal for native encrypted access tokens - #358
Draft
csfreitas wants to merge 1 commit into
Draft
Conversation
csfreitas
marked this pull request as draft
August 14, 2026 02:30
Signed-off-by: Cassio Augusto Silva de Freitas <kssiofreitas@gmail.com>
csfreitas
force-pushed
the
design/encrypted-access-tokens
branch
from
August 14, 2026 02:37
05bc8b1 to
144834d
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.
Overview
This PR introduces a Draft #1 design proposal for native encrypted Access Token support in Keycloak using JSON Web Encryption (JWE).
The proposal is related to:
The primary goal is to add opt-in confidentiality for Access Token claims while preserving the existing signed Access Token behavior by default.
Scope
The proposal evaluates:
keycloak-jsandkeycloak-admin-clientThe proposed implementation remains fully opt-in and is intended to preserve current Keycloak behavior when Access Token encryption is not configured.
Design discussion
The architecture and open questions are being discussed in:
keycloak/keycloak#51721
The existing feature request is:
keycloak/keycloak#19464
This PR is intentionally submitted as a Draft to collect feedback on the architecture and public protocol/configuration surface before implementation begins.
AI assistance disclosure
AI-assisted tooling was used during the research, review, and drafting of this design proposal. All submitted content was reviewed, understood, and validated by the contributor.