port-nimara-client-portal/pages
Matt 12403233c0 🔧 FIX: Disable OIDC global middleware to prevent redirect loops
CRITICAL FIX: The nuxt-oidc-auth module was causing infinite redirect loops
because its global middleware was active on ALL pages, including /login.

## 🚨 **Problem Solved:**
- Login page was redirecting to itself infinitely
- OIDC module auto-authenticating on every route
- 502 Bad Gateway errors from redirect loops

##  **Changes Made:**

### **nuxt.config.ts:**
- Added globalMiddlewareEnabled: false to OIDC middleware config
- This disables automatic authentication on all routes
- Prevents redirect loops on login page

### **Cleanup:**
- Removed obsolete pages/dashboard/keycloak-test.vue
- Fixed TypeScript errors from missing useKeycloak composable

## 🎯 **Result:**
 Login page should now load without redirect loops
 SSO button should work properly when clicked
 Manual authentication control via our middleware
 Maintains Directus auth compatibility

## 📋 **Next Steps:**
1. Rebuild container in Portainer with these changes
2. Test login page loads properly
3. Test SSO authentication flow
4. Verify no more 502 errors on callback

This fixes the core issue blocking the Keycloak SSO integration!
2025-06-14 16:07:01 +02:00
..
dashboard 🔧 FIX: Disable OIDC global middleware to prevent redirect loops 2025-06-14 16:07:01 +02:00
dashboard.vue Implement Keycloak authentication integration and unify user management 2025-06-14 14:09:56 +02:00
index.vue feat: add files 2025-02-16 14:10:19 +02:00
login.vue MAJOR: Replace keycloak-js with nuxt-oidc-auth for seamless SSO integration 2025-06-14 15:58:03 +02:00