port-nimara-client-portal/server/api/files
Matt a17c6ed162 KEYCLOAK AUTH FIX: Phase 4 - Email & Files Endpoints
**UPDATED ENDPOINTS (11 additional):**
- email/send.ts (CRITICAL: was using old auth)
- email/fetch-thread.ts (CRITICAL: was using old auth)
- email/fetch-thread-v2.ts (CRITICAL: was using old auth)
- email/generate-eoi-document.ts (CRITICAL: was using old auth)
- files/upload.ts (CRITICAL: was using old auth)
- files/list.ts (SECURITY ISSUE: had NO auth)
- files/download.ts (SECURITY ISSUE: had NO auth)
- files/delete.ts (SECURITY ISSUE: had NO auth)
- files/create-folder.ts (SECURITY ISSUE: had NO auth)
- files/preview.ts (SECURITY ISSUE: had NO auth)
- files/rename.ts (SECURITY ISSUE: had NO auth)

**AUTHENTICATION:** All now support dual auth:
- x-tag header (webhooks/external calls)
- Keycloak session (logged-in users)

**PROGRESS:** 28/47 endpoints completed (~60%)
**NEXT:** Continue with remaining proxy, test & debug endpoints

**CRITICAL SECURITY FIXES:** Found 6 file endpoints with NO authentication - major vulnerability patched!
2025-06-15 16:32:34 +02:00
..
create-folder.ts KEYCLOAK AUTH FIX: Phase 4 - Email & Files Endpoints 2025-06-15 16:32:34 +02:00
delete.ts KEYCLOAK AUTH FIX: Phase 4 - Email & Files Endpoints 2025-06-15 16:32:34 +02:00
download.ts KEYCLOAK AUTH FIX: Phase 4 - Email & Files Endpoints 2025-06-15 16:32:34 +02:00
list-with-attachments.ts updates 2025-06-10 15:42:00 +02:00
list.ts KEYCLOAK AUTH FIX: Phase 4 - Email & Files Endpoints 2025-06-15 16:32:34 +02:00
preview.ts KEYCLOAK AUTH FIX: Phase 4 - Email & Files Endpoints 2025-06-15 16:32:34 +02:00
proxy-download.ts updates 2025-06-10 15:21:42 +02:00
proxy-preview.ts updates 2025-06-10 15:21:42 +02:00
rename.ts KEYCLOAK AUTH FIX: Phase 4 - Email & Files Endpoints 2025-06-15 16:32:34 +02:00
test-connection.ts Fix MinIO connection by disabling SSL and add debugging 2025-06-04 16:41:59 +02:00
test-delete.ts updates 2025-06-10 15:33:01 +02:00
test-list-bucket.ts updates 2025-06-10 15:42:00 +02:00
upload.ts KEYCLOAK AUTH FIX: Phase 4 - Email & Files Endpoints 2025-06-15 16:32:34 +02:00