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
086bd9e9e4
chore: Replace deprecated koa-router with @koa/router v15 ( #14042 )
...
* chore: Replace deprecated koa-router with @koa/router v15
* fix: Run optional authentication on all auth provider routes
2026-10-11 16:47:26 -04:00
Tom Moor and Claude Fable 5.1
a577d5c2c8
fix: Validate API key and OAuth scopes at the model layer ( #13664 )
...
* fix: Validate API key scopes with Sequelize-level validators
* test: Add API regression tests for duplicate OAuth redirect URIs
* fix: Preserve wildcard scope and guard non-string redirect URIs
---------
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com >
2026-09-04 23:10:32 -04:00
Tom Moor
a232f8c702
fix: Escape characters with special meaning in LIKE statements ( #13111 )
...
closes #13102
2026-07-23 19:58:37 -04:00
Tom Moor
77cee2806c
chore: getJWTToken -> getSessionToken ( #12371 )
...
* getJWTToken -> getSessionToken
Ensure expiry is included in payload
* Refactor test harness to avoid direct usage of getSessionToken
2026-05-17 16:58:52 -04:00
Tom Moor and Claude Opus 4.7
4883071059
Allow viewers to create and access API keys ( #12278 )
...
* Allow viewers to create and access API keys
Still guarded by their view permissions
* Drop Member role gate from apiKeys routes
Lets viewers reach the createApiKey/listApiKeys/delete policy checks now
that the policy itself permits them. Updates CleanupDemotedUserTask to
retain viewer keys and adds coverage for viewer create + guest reject.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
* Tighten apiKeys test assertions and broaden viewer coverage
- Use not.toBeNull() instead of toBeTruthy() for retention check
- Add viewer coverage for apiKeys.list and apiKeys.delete
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
---------
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-06 19:35:59 -04:00
Tom Moor
1caf7f9221
chore: Increased default model creation rate limits from 10/m to 25/m ( #12236 )
2026-05-01 08:14:25 -04:00
Tom Moor and Claude Opus 4.7
6763ecbd5f
fix: API keys with global read scope not being saved correctly ( #12225 )
...
* fix: Api keys with global read scope not being saved correctly
* refactor: Hoist global scopes Set to module level
---------
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com >
2026-04-30 07:48:49 -04:00
Tom Moor
321b232f17
Move "Webhook" settings to table ( #12119 )
...
* Move 'Webhook' settings to table
* Add tests
2026-04-19 19:27:32 -04:00
Tom Moor
69e8aac4f1
Move "Api Keys" listing to filterable table ( #12117 )
...
* Move 'Api Keys' listing to filterable table
* Add context menu
Allow copying new keys
2026-04-19 18:12:32 -04:00
Tom Moor
c758f0d93a
chore: Upgrade Zod to version 4 ( #11465 )
2026-02-15 22:54:50 -05:00
Tom Moor
57b6e9aca4
feat: Passkey support ( #11065 )
...
closes #6930
2026-01-05 19:58:46 -05:00
Tom Moor
bf45e97641
chore: Enforce type import consistency ( #10968 )
...
* Update types
* fix circular dep
* type imports
* lint type imports and --fix
2025-12-19 23:07:02 -05:00
Tom Moor
866d30638e
fix: Scope incorrectly translated on API key creation ( #10134 )
2025-09-08 21:58:52 -04:00
Hemachandar
05b9c69da8
fix: Show api-key creator name in settings page ( #10041 )
2025-08-29 19:03:47 +05:30
Tom Moor
93cda9327a
fix: Admins unable to revoke workspace API keys created by other users ( #9865 )
...
* fix: Admins unable to revoke workspace API keys created by other users
closes #9864
* fix policy
2025-08-07 22:49:23 -04:00
Tom Moor
a06671e8ce
OAuth provider ( #8884 )
...
This PR contains the necessary work to make Outline an OAuth provider including:
- OAuth app registration
- OAuth app management
- Private / public apps (Public in cloud only)
- Full OAuth 2.0 spec compatible authentication flow
- Granular scopes
- User token management screen in settings
- Associated API endpoints for programatic access
2025-05-03 19:40:18 -04:00
Tom Moor
15892a9364
feat: API key resource scoping ( #8297 )
2025-01-28 16:50:22 -08:00
Tom Moor
633e547d3e
Refactor of event insertion ( #5909 )
2024-11-10 16:26:20 -08:00
Tom Moor
0e249951ab
chore: Event.createFromContext usage ( #7877 )
...
* revisions.create
* Automatically pass transaction in state to createFromContext
2024-11-02 10:16:15 -07:00
Tom Moor
72bfbf2060
Allow returning team API keys for admins from apiKeys.list ( #7766 )
...
* Allow returning team apiKeys.list for admins from apiKeys.list
* Filter apikeys in store
2024-10-14 15:29:47 -07:00
Hemachandar
1bf9012992
feat: Add lastUsedAt to API keys ( #7082 )
...
* feat: Add lastUsedAt to API keys
* rename column to lastActiveAt
* switch order
2024-06-20 06:18:35 -07:00
Hemachandar
3af9861c4a
feat: add API key expiry options ( #7064 )
...
* feat: add API key expiry options
* review
2024-06-18 18:34:45 -07:00
Tom Moor
2f495f0add
chore: Extend use of Event.createFromContext ( #7010 )
2024-06-08 14:57:55 -07:00
Tom Moor
593f7a79b8
Remove ability to create additional API keys with an existing API key
2024-06-05 06:53:07 -04:00
Tom Moor
b458bb3af9
Refactor required route role
2024-04-06 21:43:15 -04:00
Tom Moor
428b3c9553
chore: Ensure comment data is validated before persisting ( #6322 )
...
Fix flash on render of comment create
2023-12-28 10:46:50 -08:00
Mohamed ELIDRISSI
0976e85a1a
refactor: add server side validation schema for authProviders ( #4876 )
...
* refactor: move files to subfolder
* refactor: schema for authenticationProviders.info
* refactor: schema for authenticationProviders.update
* refactor: use validated body
2023-02-14 14:49:24 -08:00
Mohamed ELIDRISSI
492beedf00
refactor: add server side validation schema for apiKeys ( #4859 )
...
* refactor: add tests for apiKey api routes
* refactor: move files to subfolder
* refactor: schema for apiKeys.create and apiKeys.delete
2023-02-11 15:02:52 -08:00