Tom Moor and Claude Opus 5.5
00b124d03c
chore: Rename APIContext to Context and flatten its fields ( #14684 )
...
* chore: Rename APIContext to Context and flatten its fields
Auth and transaction now live directly on the context instead of in
ctx.state and a nested ctx.context, and model helpers read them directly.
APIContext remains as a deprecated alias.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
Claude-Session: https://claude.ai/code/session_016MJXFeUxvU46KyvKnP8sXf
* chore: Remove deprecated APIContext alias
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
Claude-Session: https://claude.ai/code/session_016MJXFeUxvU46KyvKnP8sXf
* fix: Read auth from context in OAuth provider callbacks
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
Claude-Session: https://claude.ai/code/session_016MJXFeUxvU46KyvKnP8sXf
* chore: Add withUser and withTransaction context helpers
Replaces manual createContext rebuilds that copy fields from an existing context.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
Claude-Session: https://claude.ai/code/session_016MJXFeUxvU46KyvKnP8sXf
* chore: Remove arbitrary property access from Koa context types
AppContext and Context no longer inherit the any index signature from
Koa's DefaultContext, custom fields are declared explicitly, and importing
Koa's loose Context type is disallowed by lint.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
Claude-Session: https://claude.ai/code/session_016MJXFeUxvU46KyvKnP8sXf
---------
Co-authored-by: Claude <noreply@anthropic.com >
2026-11-23 23:17:06 -05:00
Tom Moor
ca9317f4cc
fix: Clarify missing OAuth state errors ( #13734 )
2026-09-13 15:53:34 -04:00
Tom Moor and Claude Fable 5
032379da93
feat: Add support for OIDC provider returning JWT from userinfo endpoint ( #12879 )
...
* feat: Add support for OIDC provider returning JWT from userinfo endpoint
closes #12878
* PR feedback
---------
Co-authored-by: Claude Fable 5 <noreply@anthropic.com >
2026-07-08 16:28:13 +02:00
Tom Moor
66eee9007f
chore: Upgrade to Typescript 6 ( #12737 )
...
* chore: Upgrade TypeScript to 6.0
2026-06-18 17:34:05 -04:00
Tom Moor
f50bb00b29
Refactor of OAuth account linking flows ( #12246 )
...
* Refactor of OAuth account linking flows
* PR feedback
2026-05-02 18:54:38 -04:00
Tom Moor
615cad5484
fix: Incorrect handling of missing refresh token ( #10886 )
2025-12-13 12:37:06 -05:00
Luke Granger-Brown
7b27b74e24
fix: Recognise authentication_required for some OIDC providers ( #10252 )
...
Some OIDC providers return 401 Unauthorized errors with an empty body
when the access token has expired.
Avoid trying to parse the body as JSON before we've checked whether the
status code is OK.
Fixes #10251 .
2025-09-26 00:52:53 -04:00
Tom Moor
f1dee53dc4
fix: Unable to access private OIDC server endpoints ( #10062 )
2025-09-01 05:12:49 -04:00
Tom Moor
5c07694f6b
Refactor 'uploadFromUrl' to base storage implementation
...
Add safety around using fetch implementation
2023-08-20 13:13:17 -04:00
Tom Moor
c56add74c6
fix: Azure single-tenant SSO tokens are unable to refresh ( #5551 )
2023-07-11 15:59:28 -07:00
Tom Moor
728790e38f
feat: Validate Google, Azure, OIDC SSO access ( #3590 )
...
* chore: Store expiresAt on UserAuthentications. This represents the time that the accessToken is no longer valid and should be exchanged using the refreshToken
* feat: Check and expire Google SSO
* fix: Better handling of multiple auth methods
Added more docs
* fix: Retry access validation with network errors
* Small refactor, add Azure token validation support
* doc
* test
* lint
* OIDC refresh support
* CheckSSOAccessTask -> ValidateSSOAccessTask
Added lastValidatedAt column
Skip checks if validated within 5min
Some edge cases around encrypted columns
2022-06-05 13:18:51 -07:00