Skip to content

fix(oidc): sign session exchange tokens only for a sign-in - #626

Merged
Bccorb merged 3 commits into
mainfrom
fix/oidc-sign-grant-binding
Nov 27, 2026
Merged

Bccorb merged 3 commits into
mainfrom
fix/oidc-sign-grant-binding

Conversation

@Bccorb

@Bccorb Bccorb commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Session exchange tokens are signed only for a sign-in, and /oidc/sign moves to OIDC edge contract 4.

  • Each session:exchange token must claim the authorization or device code the edge consumed for the same session and client in the same token request. Each code backs at most one token, and the reported grant must match the code.
  • A refresh consumes no code, so it can no longer mint a session exchange token. Session exchange clients are no longer served the refresh_token grant, whatever their stored grant list says.
  • Under contract 4, /oidc/sign accepts grantType: refresh_token with the sign-in grant it continues in originGrantType, and a refresh of a device approval keeps the device-grant rules (ADR 0001, D10).
  • Locks @seamless-auth/types 0.41.0.

An OpenID Provider service on contract 3 refuses to start against this API, so @seamless-auth/oidc-provider is released alongside it. Released as a minor bump.

@Bccorb
Bccorb force-pushed the fix/oidc-sign-grant-binding branch from 2d9d68e to e6630cb Compare November 27, 2026 04:02
@Bccorb
Bccorb deleted the branch fix/step-up-earlier-factors November 27, 2026 06:06
@Bccorb Bccorb closed this Nov 27, 2026
Each session:exchange token must claim the authorization or device code
consumed for the same session and client in the same token request, and
each code backs one token. The reported grant must match the code. Session
exchange clients are not served the refresh_token grant.
A refresh names the sign-in grant it continues in originGrantType, and a
refresh of a device approval keeps the device-grant rules. Needs
@seamless-auth/types 0.41.0. package-lock.json is updated when it publishes.
@Bccorb Bccorb reopened this Nov 27, 2026
@Bccorb
Bccorb changed the base branch from fix/step-up-earlier-factors to main November 27, 2026 06:09
@Bccorb
Bccorb force-pushed the fix/oidc-sign-grant-binding branch from e6630cb to a0c53f6 Compare November 27, 2026 06:10
@Bccorb
Bccorb merged commit a2e0ae6 into main Nov 27, 2026
9 checks passed
@Bccorb
Bccorb deleted the fix/oidc-sign-grant-binding branch November 27, 2026 06:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant