port-nimara-client-portal/server/api
Matt 7ca77e2dcf FIX: Correct OIDC cookie name mismatch across all auth endpoints
**Root Cause:**
- Auth system was looking for 'keycloak-session' cookies
- But actual OIDC system uses 'nuxt-oidc-auth' cookies
- This caused authentication failures for file previews and other endpoints

**Files Updated:**
- server/utils/auth.ts: Updated to check 'nuxt-oidc-auth' cookie
- server/api/auth/session.ts: Updated cookie name references
- server/api/auth/logout.ts: Updated cookie deletion
- server/api/auth/keycloak/callback.ts: Updated cookie creation

**Result:**
- File previews should now work for authenticated users
- All authentication endpoints now use consistent cookie names
- Both x-tag headers and OIDC sessions work correctly
2025-06-15 16:58:45 +02:00
..
auth FIX: Correct OIDC cookie name mismatch across all auth endpoints 2025-06-15 16:58:45 +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