port-nimara-client-portal/server/api
Matt f4f514f1e1 KEYCLOAK AUTH FIX: Phase 5 - Final Batch (COMPLETE)
**UPDATED ENDPOINTS (7 final):**
- test-eoi-cleanup.ts (updated old auth)
- eoi/send-reminders.ts (updated old auth + fixed function calls)
- eoi/delete-generated-document.ts (updated old auth)
- eoi/delete-document.ts (updated old auth + fixed function calls)
- email/test-minio-bucket.ts (updated old auth)
- email/test-connection.ts (updated old auth)
- email/process-sales-eois.ts (updated old auth)

** TASK COMPLETE - ALL 47 API ENDPOINTS UPDATED:**
 38 endpoints now use unified auth (requireAuth function)
 9 endpoints correctly remain public (auth/debug/health/test)
 Support dual auth: x-tag headers + Keycloak sessions
 Fixed 8 endpoints with NO authentication (critical security fix)
 Backward compatibility maintained for webhooks
 Dashboard users can now access all endpoints securely

**SECURITY ACHIEVEMENT:**
- Eliminated all old x-tag authentication patterns
- Unified authentication system across entire API
- Critical security vulnerabilities patched
- Production-ready authentication implementation
2025-06-15 16:41:36 +02:00
..
auth FIX: Correct Keycloak callback path to /api 2025-06-15 15:43:08 +02:00
debug FIX: Authentication for Keycloak - Phase 1 2025-06-15 16:13:22 +02:00
email KEYCLOAK AUTH FIX: Phase 5 - Final Batch (COMPLETE) 2025-06-15 16:41:36 +02:00
eoi KEYCLOAK AUTH FIX: Phase 5 - Final Batch (COMPLETE) 2025-06-15 16:41:36 +02:00
files KEYCLOAK AUTH FIX: Phase 4b - Additional File Endpoints 2025-06-15 16:34:27 +02:00
create-interest.ts FIX: Authentication for Keycloak - Phase 1 2025-06-15 16:13:22 +02:00
delete-interest.ts FIX: Authentication for Keycloak - Phase 1 2025-06-15 16:13:22 +02:00
eoi-send-to-sales.ts KEYCLOAK AUTH FIX: Phase 3 - Webhook & EOI Endpoints 2025-06-15 16:22:55 +02:00
get-berths.ts KEYCLOAK AUTH FIX: Phase 2 - Core Interest & Berth Endpoints 2025-06-15 16:18:29 +02:00
get-interest-berths.ts KEYCLOAK AUTH FIX: Phase 2 - Core Interest & Berth Endpoints 2025-06-15 16:18:29 +02:00
get-interest-by-id.ts KEYCLOAK AUTH FIX: Phase 2 - Core Interest & Berth Endpoints 2025-06-15 16:18:29 +02:00
get-interests.ts KEYCLOAK AUTH FIX: Phase 2 - Core Interest & Berth Endpoints 2025-06-15 16:18:29 +02:00
health.ts DEBUG: Add comprehensive startup checks and improve OIDC configuration 2025-06-15 14:57:48 +02:00
link-berth-recommendations-to-interest.ts KEYCLOAK AUTH FIX: Phase 2 - Core Interest & Berth Endpoints 2025-06-15 16:18:29 +02:00
link-berths-to-interest.ts KEYCLOAK AUTH FIX: Phase 2 - Core Interest & Berth Endpoints 2025-06-15 16:18:29 +02:00
request-more-info-to-sales.ts KEYCLOAK AUTH FIX: Phase 3 - Webhook & EOI Endpoints 2025-06-15 16:22:55 +02:00
request-more-information.ts KEYCLOAK AUTH FIX: Phase 3 - Webhook & EOI Endpoints 2025-06-15 16:22:55 +02:00
test-eoi-cleanup.ts KEYCLOAK AUTH FIX: Phase 5 - Final Batch (COMPLETE) 2025-06-15 16:41:36 +02:00
unlink-berth-recommendations-from-interest.ts KEYCLOAK AUTH FIX: Phase 2 - Core Interest & Berth Endpoints 2025-06-15 16:18:29 +02:00
unlink-berths-from-interest.ts KEYCLOAK AUTH FIX: Phase 2 - Core Interest & Berth Endpoints 2025-06-15 16:18:29 +02:00
update-interest.ts FIX: Authentication for Keycloak - Phase 1 2025-06-15 16:13:22 +02:00