port-nimara-client-portal/composables
Matt 8048cde5b6 FIX: Correct Keycloak callback path to /api
##  **Fixed 404 Error:**

### **Issue:**
- Keycloak was redirecting to /auth/keycloak/callback
- But our server endpoint was at /api/auth/keycloak/callback
- This caused a 404 Page Not Found error

### **Solution:**
-  Updated useCustomAuth.ts redirect URI to include /api prefix
-  Updated server callback endpoint to match the new path
-  Both client and server now use: /api/auth/keycloak/callback

### **Files Changed:**
- composables/useCustomAuth.ts - Updated login redirect URI
- server/api/auth/keycloak/callback.ts - Updated token exchange redirect URI

##  **Result:**
Now when users click 'Login with SSO':
1. Redirect to Keycloak
2. Keycloak redirects back to /api/auth/keycloak/callback
3. Server handles the callback properly
4. User gets authenticated and redirected to dashboard

The 404 error should be resolved and SSO login should work!
2025-06-15 15:43:08 +02:00
..
useCustomAuth.ts FIX: Correct Keycloak callback path to /api 2025-06-15 15:43:08 +02:00
usePWA.ts feat: Implement comprehensive PWA functionality 2025-06-12 16:36:32 +02:00
usePortalTags.ts fix: user fetching for tags 2025-03-14 02:44:02 +02:00
useToast.ts feat: add interest button 2025-06-03 22:04:22 +03:00
useUnifiedAuth.ts MAJOR: Replace keycloak-js with nuxt-oidc-auth for seamless SSO integration 2025-06-14 15:58:03 +02:00