Tom Moor
d9aec40313
chore: Store service in JWT ( #11136 )
...
* chore: Store service in JWT
* docs
* fix: Remove early return
2026-01-10 12:28:00 -05:00
Tom Moor
77a125d290
fix: test ( #11140 )
2026-01-10 16:29:44 +00:00
Tom Moor
b123762e86
chore: Remove collection.url, fix post-signin redirect ( #11139 )
2026-01-10 16:19:23 +00:00
Tom Moor
fbd4ded5b4
feat: Add authentication provider management ( #10997 )
...
* Gemini first-pass
* Prevent post-connect login
* stash
* stash
* Add OIDC logo
* Separate security page
* test
* Update icon
* test
* ui
* Add extra guards for disabling auth provider
* refactor
* test
2025-12-24 09:09:24 -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
Copilot and tommoor
2772de2766
Fix security check in /auth/redirect comparing against undefined ctx.params.token ( #10894 )
...
* Initial plan
* Fix security check in /auth/redirect to use ctx.state.auth.token instead of ctx.params.token
Co-authored-by: tommoor <380914+tommoor@users.noreply.github.com >
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: tommoor <380914+tommoor@users.noreply.github.com >
2025-12-13 15:02:39 -05:00
Tom Moor
0a9bd39aac
Add CSRF middleware ( #10051 )
...
ref OUT-Q325-03
2025-08-31 06:35:35 -04:00
Tom Moor
dd061790a8
fix: Frontend requests do not send Content-Type header in request ( #9956 )
...
* Revert "Revert "fix: Frontend requests do not send Content-Type in request (#…"
This reverts commit 7fddd99c28 .
* Update authentication.ts
2025-08-17 21:47:06 +00:00
Tom Moor
7fddd99c28
Revert "fix: Frontend requests do not send Content-Type in request ( #9954 )" ( #9955 )
...
This reverts commit 7ab7e6efb7 .
2025-08-17 21:42:28 +00:00
Tom Moor
7ab7e6efb7
fix: Frontend requests do not send Content-Type in request ( #9954 )
2025-08-17 16:02:56 -04:00
Tom Moor
a6b0fcff48
feat: Add OTP sign-in for PWA ( #9556 )
...
* wip
* wip
* wip
* Only use code for desktop and PWA
2025-07-07 18:36:43 -04:00
f284a27941
feat: Add OIDC well-known endpoint discovery support ( #9308 )
...
* feat: Add OIDC well-known endpoint discovery support
Co-authored-by: codegen-sh[bot] <131295404+codegen-sh[bot]@users.noreply.github.com>
Co-authored-by: Tom Moor <tom@getoutline.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-05-27 07:56:02 -04:00
Apoorv Mishra
85c8f83e33
PluginManager refactor (#6677 )
...
* fix: refactor plugin manager
* fix: make id optional
* fix: allow add to accept single object
* fix: getHooks
* fix: tsc
* fix: remove id
2024-03-16 21:22:25 +05:30
Tom Moor and Apoorv Mishra
f9a11a28d8
chore: Plugin registration ( #6623 )
...
* first pass
* test
* test
* priority
* Reduce boilerplate further
* Update server/utils/PluginManager.ts
Co-authored-by: Apoorv Mishra <apoorvmishra101092@gmail.com >
* fix: matchesNode error in destroyed editor transaction
* fix: Individual imported files do not display source correctly in 'Insights'
* chore: Add sleep before Slack notification
* docs
* fix: Error logged about missing plugin.json
* Remove email template glob
---------
Co-authored-by: Apoorv Mishra <apoorvmishra101092@gmail.com >
2024-03-08 20:32:05 -08:00
Apoorv Mishra and Tom Moor
67b1fe5514
Local file storage ( #5763 )
...
Co-authored-by: Tom Moor <tom.moor@gmail.com >
2023-09-20 15:12:03 -07:00
Tom Moor
39e12cef65
chore: Use httpOnly authentication cookie ( #5552 )
2023-07-15 13:56:32 -07:00
Apoorv Mishra
af3edd7cb2
fix: coalesce falsy body to {} ( #4929 )
2023-02-25 11:14:44 -08:00
Tom Moor
21a1257d06
chore: Move remaining auth methods to plugins ( #4900 )
...
* Move Google, Email, and Azure to plugins
* Move OIDC provider, remove old loading code
* Move AuthLogo to plugin
* AuthLogo -> PluginIcon
* Lazy load plugin settings
2023-02-19 19:52:08 -08:00
Tom Moor
33afa2f029
Plugin architecture ( #4861 )
...
* wip
* Refactor, tasks, processors, routes loading
* Move Slack settings config to plugin
* Fix translations in plugins
* Move Slack auth to plugin
* test
* Move other slack-related files into plugin
* Forgot to save
* refactor
2023-02-12 10:11:30 -08:00
Tom Moor
239e9e294d
fix: Microsoft auth silently errors when logged into multiple Microsoft accounts, allow account selection in OAuth flow
2023-02-04 14:56:52 -05:00
Tom Moor
075555a867
fix: Do not show actively disabled auth providers in self-hosted install ( #4794 )
...
* fix: Do not show actively disabled auth providers in self-hosted installation
* self review
* Refactor for easier mocking
2023-01-28 10:02:25 -08:00
Tom Moor
d5eabd7771
fix: Allow loading attachments linked from other sites/emails.
...
Loosens same-site policy to include cookies for navigation events.
closes #4737
2023-01-27 18:52:47 -05:00
Tom Moor
b5876dc844
fix: Fallback to username when name is unavailable in OIDC provider
...
closes #4774
2023-01-27 18:18:08 -05:00
Apoorv Mishra
f4461573de
Refactor to accommodate authentication, transaction and pagination states together ( #4636 )
...
* fix: refactor to accommodate authentication, transaction and pagination together into ctx.state
* feat: allow passing response type to APIContext
2023-01-04 23:51:44 +05:30
Tom Moor
8e4270c321
feat: Add GA integration, support for GA4 ( #4626 )
...
* GA integration settings
* trackingId -> measurementId
Hook up script
* Public page GA tracking
Correct layout of settings
* Remove multiple codepaths for loading GA measurementID, add missing db index
* Remove unneccessary changes, tsc
* test
2023-01-01 07:29:08 -08:00
Tom Moor
05a4f050bb
chore: Improve graceful server shutdown ( #4625 )
...
* chore: Improve graceful server shutdown
* Replace node timers with custom promise timeout
2022-12-31 13:56:27 -08:00
Tom Moor
7c47ab560e
fix: Add check for 'name' returned from OIDC provider, closes #4453
2022-12-30 14:02:00 -05:00
Apoorv Mishra
5c842087a5
feat(server): rate limit all routes ( #4561 )
2022-12-10 05:47:18 -08:00
Apoorv Mishra and Tom Moor
053d10d893
Enhance server side error handling ( #4537 )
...
* fix: server side error handling
* fix: push only unknown 500 errors to sentry
* fix: use in-house onerror in favor of errorHandling middleware
* fix: split error template into dev and prod envs
* fix: check Error instance
* fix: error routes in test env
* fix: review comments
* Remove koa-onerror
Co-authored-by: Tom Moor <tom.moor@gmail.com >
2022-12-09 21:51:42 +05:30
Tom Moor
cc333637dd
Desktop support ( #4484 )
...
* Remove home link on desktop app
* Spellcheck, installation toasts, background styling, …
* Add email,slack, auth support
* More desktop style tweaks
* Move redirect to client
* cleanup
* Record desktop usage
* docs
* fix: Selection state in search input when double clicking header
2022-11-27 15:07:48 -08:00
Tom Moor
df46d3754a
feat: Authentication provider display ( #4332 )
...
* layout
* Refactor
* wip
* Quick changes to make this deployable without full management
* test
2022-10-24 14:01:40 -07:00
Tom Moor
87e3f18e6d
chore: Remove method override middleware ( #4315 )
...
* chore: Remove method override middleware
* wip
* CodeQL
* max/min
2022-10-18 16:03:25 -07:00
Tom Moor
5d5fe66e77
fix: Logging in with email on a subdomain should not forward to other subdomains ( #4305 )
2022-10-16 08:20:46 -07:00
Tom Moor
1fbc000e03
chore: Reduce test boilerplate ( #4300 )
...
* chore: Reduce test boilerplate
* mo
2022-10-15 19:40:21 -07:00
Tom Moor
0d6b3a9816
fix: Unable to connect slack on custom domains
2022-10-07 22:09:40 -04:00
Tom Moor
89a133ea59
Add sameSite attribute for auth cookies
2022-09-24 21:46:25 -04:00
Tom Moor
62b4f520de
fix: Do not forward to a disabled authentication provider when attempting to sign-in with email
2022-09-22 07:27:03 -04:00
Tom Moor
f8912732b8
chore: Flag users with platform used
2022-09-18 17:53:55 -04:00
Tom Moor
a326e0ee88
chore: Rate limiter audit ( #3965 )
...
* chore: Rate limiter audit api/users
* Make requests required
* api/collections
* Remove checkRateLimit on FileOperation (now done at route level through rate limiter)
* auth rate limit
* Add metric logging when rate limit exceeded
* Refactor to shared configs
* test
2022-08-14 08:04:04 -07:00
Apoorv Mishra
0c51bfb899
perf: reduce memory usage upon running server tests ( #3949 )
...
* perf: reduce memory usage upon running server tests
* perf: plug leaks in server/routes
* perf: plug leaks in server/scripts
* perf: plug leaks in server/policies
* perf: plug leaks in server/models
* perf: plug leaks in server/middlewares
* perf: plug leaks in server/commands
* fix: missing await on db.flush
* perf: plug leaks in server/queues
* chore: remove unused legacy funcs
* fix: await on db.flush
* perf: await on GC to run in between tests
* fix: remove db refs
* fix: revert embeds
* perf: plug leaks in shared/i18n
2022-08-11 21:39:17 +05:30
Tom Moor
1d242d44b1
chore: Add eslint rule for object shorthand ( #3955 )
2022-08-11 05:18:14 -07:00
Tom Moor
71c9fcf59b
test: Avoid creation of new server/app instance for each route test
2022-08-08 12:06:54 +02:00
Nan Yu
870d9ed41e
feat: allow external SSO methods to log into teams as long as emails match ( #3813 )
...
* wip
* wip
* fix comments
* better separation of conerns
* fix up tests
* fix semantics
* fixup tsc
* fix some tests
* the old semantics were easier to use
* add db:reset to scripts
* explicitly throw for unauthorized external authorization
* fix minor bug
* add additional tests for user creator and team creator
* yank the email matching logic out of teamcreator
* renaming
* fix type and test errors
* adds test to ensure that accountProvisioner works with email matching
* remove only
* fix comments
* recreate changes to allow self hosted to make teams
2022-07-24 04:55:30 -07:00
Nan Yu
c3f5563e7f
feat: scope login attempts to specific subdomains if available - do not switch subdomains ( #3741 )
...
* make the user lookup in user creator sensitive to team
* add team specific logic to oidc strat
* factor out slugifyDomain
* change type of req during auth to Koa.Context
2022-07-19 06:50:55 -07:00
Tom Moor
831df67358
feat: Adds route-level role filtering. ( #3734 )
...
* feat: Adds route-level role filtering. Another layer in the onion of security and performance
* fix: Regression in authentication middleware
2022-07-05 12:26:49 -07:00
Tom Moor
62d9bf7105
chore: Move initial avatar upload to background worker ( #3727 )
...
* chore: Async user avatar upload processor
* chore: Async team avatar upload
* Refactor to task for retries
* Docs
Include avatarUrl in task props to prevent race condition
Remove transaction around upload fetch request
2022-07-03 02:36:15 -07:00
Tom Moor
863f22750f
feat: Add optional notification email when invite is accepted ( #3718 )
...
* feat: Add optional notification email when invite is accepted
* Refactor to use beforeSend
2022-07-02 05:40:40 -07:00
Nan Yu
4b166432e6
fix: show a distinct error message when a user tries to create an account using a personal gmail ( #3710 )
...
* fix: show a different error message when a user tries to create an account using a personal gmail
* throw only after attempting to find the team
2022-07-01 13:21:23 -07:00
Nan Yu
e0d2b6cace
feat: allow personal gmail accounts to be used to sign into teams with an existing invite ( #3652 )
...
* feat: allow personal gmail accounts to be used to sign into teams with an existing invite
* address comments
* add comment for appDomain
* address comments
2022-06-20 01:33:16 -07:00
Tom Moor
d99d84d97d
fix: Email cannot be found for some Azure sign-in accounts
2022-06-09 09:22:12 +02:00