Skip to content

OpenAPI: a sign-in gate's 503 when the session cannot be verified - #939

Merged
jimhoyd merged 1 commit into
mainfrom
claude/openapi-auth-503
Sep 29, 2026
Merged

jimhoyd merged 1 commit into
mainfrom
claude/openapi-auth-503

Conversation

@jimhoyd

@jimhoyd jimhoyd commented Sep 29, 2026

Copy link
Copy Markdown
Collaborator

The auth adapter answers 503 auth_unavailable with Retry-After when its database is unavailable, instead of a false 401 (#927/#934). The OpenAPI export listed only the gate's 401 and 403, so a generated client had no documented way to tell "not signed in" apart from "retry later".

  • gateResponses now adds a 503 (with a Retry-After header and an extension-defined body) to every method on a route behind a principal-providing gate. As with 401 and 403, it's generic: it applies to any providesPrincipal extension, and none is named in core.
  • When the extension's own describe() also answers 503, the existing merge keeps both descriptions and drops the body schema.
  • Updated RIM-OPENAPI-001, EXTENSIONS.md and TOOLING.md, test/openapi.test.ts (asserts the 503 and its Retry-After), and the Auth.js provider integration test's key list.

Evidence: npm run verify and npm run test:package are green locally on Node 26.

🤖 Generated with Claude Code

@jimhoyd
jimhoyd enabled auto-merge (squash) September 29, 2026 17:50
@jimhoyd
jimhoyd merged commit eccd51f into main Sep 29, 2026
24 checks passed
@jimhoyd
jimhoyd deleted the claude/openapi-auth-503 branch September 29, 2026 17:57
jimhoyd added a commit that referenced this pull request Sep 29, 2026
…-doc links, drop a duplicated store CHANGELOG entry

Co-Authored-By: Claude Opus 5.5 <[email protected]>
jimhoyd added a commit that referenced this pull request Sep 29, 2026
…d store CHANGELOG entry

Co-Authored-By: Claude Opus 5.5 <[email protected]>
jimhoyd added a commit that referenced this pull request Sep 29, 2026
--local-review and hermetic runs compose: the store-credits recipe seeds its issuer from tests/seed.json instead of
adding it to the live database, and the recipe tests assert nothing reaches the configured database.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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