Skip to content

Stable pre-provisioned broker client for token exchange and ID-JAG redemption #6893

Closed

Description

@jhrozek

Part of #6886.

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.

Activity

  1. added
    needs-triage
    on Oct 21, 2026
  2. self-assigned this
    on Oct 21, 2026
  3. removed
    needs-triage
    on Oct 21, 2026
  4. jhrozek commented on Nov 4, 2026

    @jhrozek
    ContributorAuthor

    The planned work for this issue is done. Here is where each piece landed:

    Three things are still open, and each has its own home:

    Closing this issue. The acceptance criteria above are met, and the remaining work is tracked elsewhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions