* Set lock_timeout on request transactions
Lock waits in API transactions now fail after 5s with a 503 instead of
holding a pool connection until the statement timeout.
* Map query timeouts to request_timeout in batch sub-requests
Session tokens were accepted from the request body and query string, unlike
the other credential types parsed by the same middleware. They are now only
read from the cookie or the Authorization header.
Short-lived single-use transfer tokens are unaffected, so the subdomain and
desktop sign-in hand-offs continue to work.
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
* fix: Tighten credential handling in OAuth client and batch endpoints
- Include an OAuth client secret in responses only when the presented
credential is itself scoped to manage clients, rather than deciding from
the user's abilities alone.
- Require an interactive session at the authorization endpoint, matching the
batch endpoint, so consent cannot be answered programmatically.
- Resolve a batched sub-request's scope against the dispatched method rather
than the parent path, and always run sub-requests as the parent's
credential.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* fix: Address review feedback on naming and documentation
- Name the batch test for what it asserts, as API keys do support per-method
scopes and the rejection comes from the session pin on the route.
- Add the missing @returns tag and terminal punctuation to the presenter's
JSDoc, matching the sibling presenter in the same file.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>