You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Stable pre-provisioned broker client for token exchange and ID-JAG redemption #6893
Problem: a confidential client with private_key_jwt exists only through dynamic registration, with a random client_id that changes when its key rotates, and only the token-exchange grant. Static clients use secrets only. A broker that signs users in, exchanges their tokens, and redeems ID-JAGs needs one stable identity across all three.
Change:
A pre-provisioned confidential client with a fixed client_id, authenticating with private_key_jwt (inline keys) or a secret.
Its grant types are configurable: authorization code with a registered redirect URI, refresh token, token exchange, JWT-bearer.
Its token exchange accepts only subject tokens issued to itself, plus tokens of clients configured for it by name (for example the user's TUI client).
It may request its own configured API audience (today the requested audience must be a subset of the subject token's, tokenexchange/handler.go ~786).
Client assertions are accepted with aud equal to this server's issuer alone (draft-ietf-oauth-rfc7523bis §4), server-wide, not only for this client. Roll out in stages: accept both forms, then require the issuer form, so existing clients are updated first.
Acceptance: the client keeps its client_id across a key rotation; a token issued to an unlisted client is refused as a subject token; an assertion with the issuer as aud is accepted.
Key rotation keeps the client_id: covered by TestConfiguredPrivateKeyJWTClientKeepsIDAcrossKeyRotation in pkg/authserver/configured_client_runner_integration_test.go.
Three things are still open, and each has its own home:
Activity
Accept issuer as client assertion audience (#6946)
Stop serving delegate clients removed from config (#6945)
Add configured delegate client metadata
Add configured delegate client metadata
Add configured delegate client metadata
Add configured delegate client metadata (#6952)
jhrozek commentedon Nov 4, 2026
The planned work for this issue is done. Here is where each piece landed:
client_id: configured delegate clients (Add configured delegate client metadata #6952, Wire configured delegate clients into the runner #6953).configured_client.go, with token exchange required (Add configured delegate client metadata #6952, Wire configured delegate clients into the runner #6953).client_id: covered byTestConfiguredPrivateKeyJWTClientKeepsIDAcrossKeyRotationinpkg/authserver/configured_client_runner_integration_test.go.Three things are still open, and each has its own home:
aud(the second rollout stage) is tracked in Authorization server: require the issuer as the only aud of a private_key_jwt client assertion #7039, because it needs an option, a default, and a migration plan for existing clients.Closing this issue. The acceptance criteria above are met, and the remaining work is tracked elsewhere.