Matt d45ae31f10 FEAT: Unified Authentication System - Support Both Directus and Keycloak Users
**Problem Solved:**
- File previews failing due to unsupported Directus authentication
- Encrypted OIDC cookies causing JSON parse errors
- Need both Directus and Keycloak users to access same dashboard

**Changes:**
- server/utils/auth.ts: Added Directus token validation alongside OIDC
- server/api/auth/session.ts: Support both auth methods with proper user data
- server/api/auth/logout.ts: Clear appropriate cookies based on auth method

**Authentication Methods Now Supported:**
1. X-tag headers (webhooks/external calls)
2. Directus tokens (existing Directus users)
3. OIDC sessions (Keycloak users, encrypted or plain)

**Result:**
- Both Directus and Keycloak users can access dashboard
- File previews work for all authenticated users
- Proper logout handling for each auth method
- No more JSON parse errors for encrypted OIDC cookies
2025-06-15 17:03:42 +02:00
2025-02-16 20:32:34 +02:00
2025-02-16 14:10:19 +02:00
2025-06-12 16:26:10 +02:00
2025-02-16 14:10:19 +02:00
2025-02-16 14:10:19 +02:00
2025-06-03 22:04:22 +03:00
2025-06-12 21:54:47 +02:00
2025-02-16 14:10:19 +02:00
2025-02-16 14:10:19 +02:00

Client Portal

Commands

  • npm run dev to start development

Tech Stack

  • Node.js
  • Nuxt
  • Directus
  • Vuetify
Description
No description provided
Readme 2.3 MiB
Languages
TypeScript 51.5%
Vue 48.5%