Repository navigation
Title: Proposal: Treat act and may_act as reserved claim names (#53039) #53741
karan-rastogi
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi Keycloak community,
I'd like to pick up issue #53039 "Treat act and may_act as reserved claim names."
Problem
Currently, any OIDC protocol mapper (HardcodedClaim, ScriptBasedOIDCProtocolMapper, UserAttributeMapper) on any client scope can write directly to the
act/may_actclaims used by Token Exchange Delegation.OIDCAttributeMapperHelperblocks a set of reserved claims (jti, typ, iat, exp, iss, scope, nonce, session_state) butact/may_actare missing.Proposed Approach
Mirror the pattern already used by OID4VC (#52667):
act/may_acttoOIDCAttributeMapperHelper's reserved-claim block-list (defense-in-depth).act/may_act(and subpaths likeact.sub) at config-save time viaProtocolMapper.validateConfig(), mirroringOID4VCMapper.validateAgainstSensitiveMappings().getAllowedReservedClaims()) so the built-inmay_act.sub/may_act.client_idmappers on thedelegation:user/delegation:clientscopes remain valid.Non-Goals
RejectMayActClaimExecutor(that's a runtime revocation check; this is prevention-at-source).Questions
ProtocolMapperor a dedicated helper?Thanks!
All reactions