Exchange Flow to hstern/go-token-exchange (mechanical swap) #35

Closed
opened 2026-09-15 23:27:08 +00:00 by ginjiruu · 0 comments
Owner

Parent

#31 — Spec: public-client support + replace hand-rolled protocol code with the x/oauth2 + go-oidc + hstern trio

What to build

The Exchange Flow's RFC 8693 code runs on github.com/hstern/go-token-exchangeclient_id sent via the library's Extra, actor fields omitted, no client secret. Behavior is preserved: the per-replica token cache, the exchanged-token Authorization injection, and the subject-token consumption are unchanged.

Acceptance criteria

  • The RFC 8693 exchange uses hstern/go-token-exchange.
  • The request sends client_id (via Extra), omits the actor fields, and sends no client secret.
  • The per-replica token cache, Authorization injection, and subject-token removal are unchanged.
  • The exchange serve tests pass (adapted to hstern).
  • make lint and make test pass.

Blocked by

  • None — can start immediately.
## Parent #31 — Spec: public-client support + replace hand-rolled protocol code with the x/oauth2 + go-oidc + hstern trio ## What to build The **Exchange Flow**'s RFC 8693 code runs on `github.com/hstern/go-token-exchange` — `client_id` sent via the library's `Extra`, actor fields omitted, no client secret. Behavior is preserved: the per-replica token cache, the exchanged-token `Authorization` injection, and the subject-token consumption are unchanged. ## Acceptance criteria - [ ] The RFC 8693 exchange uses `hstern/go-token-exchange`. - [ ] The request sends `client_id` (via `Extra`), omits the actor fields, and sends no client secret. - [ ] The per-replica token cache, `Authorization` injection, and subject-token removal are unchanged. - [ ] The exchange serve tests pass (adapted to hstern). - [ ] `make lint` and `make test` pass. ## Blocked by - None — can start immediately.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lab/authz-bridge#35
No description provided.