feat(files): password, email-OTP, and SSO auth for public file shares (#5140)

* feat(files): password, email-OTP, and SSO auth for public file shares

* fix(files): suppress filename in share previews for email/sso, not just password

* fix(files): normalize allow-list emails to lowercase; genericize shared SSO denial message

* fix(security): make isEmailAllowed case-insensitive; normalize email at client gates

* test(security): cover isEmailAllowed case-insensitive matching

* fix(security): bind auth cookie to auth type; password endpoint rejects non-password shares

* chore(db): format generated migration meta

* fix(files): share upsert validation returns 400 not 500; disabling always succeeds

* feat(access-control): org admins can restrict allowed file-share auth types
This commit is contained in:
Theodore Li
2026-06-19 18:53:12 -04:00
committed by GitHub
parent 5925651cbc
commit 7349bf403f
44 changed files with 19299 additions and 369 deletions
+2 -2
View File
@@ -9,8 +9,8 @@ const QUERY_HOOKS_DIR = path.join(ROOT, 'apps/sim/hooks/queries')
const SELECTOR_HOOKS_DIR = path.join(ROOT, 'apps/sim/hooks/selectors')
const BASELINE = {
totalRoutes: 857,
zodRoutes: 857,
totalRoutes: 859,
zodRoutes: 859,
nonZodRoutes: 0,
} as const