port-nimara-client-portal/server/api/email
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
..
fetch-thread-v2.ts KEYCLOAK AUTH FIX: Phase 4 - Email & Files Endpoints 2025-06-15 16:32:34 +02:00
fetch-thread.ts KEYCLOAK AUTH FIX: Phase 4 - Email & Files Endpoints 2025-06-15 16:32:34 +02:00
generate-eoi-document.ts KEYCLOAK AUTH FIX: Phase 4 - Email & Files Endpoints 2025-06-15 16:32:34 +02:00
process-sales-eois.ts Add EOI automation system with email processing and document management 2025-06-10 13:59:09 +02:00
send.ts KEYCLOAK AUTH FIX: Phase 4 - Email & Files Endpoints 2025-06-15 16:32:34 +02:00
test-connection.ts Add EOI automation system with email processing and document management 2025-06-10 13:59:09 +02:00
test-minio-bucket.ts updates 2025-06-10 02:10:32 +02:00