Skip to content

fix(oidc): read a missing sessionExchangeEnabled as off - #151

Merged
Bccorb merged 2 commits into
mainfrom
fix/application-response-older-api
Nov 5, 2026
Merged

Bccorb merged 2 commits into
mainfrom
fix/application-response-older-api

Conversation

@Bccorb

@Bccorb Bccorb commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

0.36.0 (#149) made sessionExchangeEnabled required on OidcApplicationSchema. API v0.23 is held, so no running instance sends it yet. A client on 0.36.0 refuses their application responses: seamless clients fails with "The instance returned an application list this CLI cannot read (applications.0.sessionExchangeEnabled: expected boolean, received undefined)". The failure surfaced when bumping seamless-cli to 0.36.0, and #149's description wrongly called the release additive.

The response schema now reads a missing field as false, which is what it means: an older API has no session exchange. The parsed type stays boolean. Request schemas and the eligibility rule are unchanged.

OidcApplicationSchema is the only such field: the new session fields are already optional. The first commit adds the failing test alone. Vitest and typecheck pass locally.

@Bccorb
Bccorb merged commit 808f78e into main Nov 5, 2026
5 checks passed
@Bccorb
Bccorb deleted the fix/application-response-older-api branch November 5, 2026 13:24
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