diff --git a/nuxt.config.ts b/nuxt.config.ts index ccbe9c8..ef070e3 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -112,6 +112,9 @@ export default defineNuxtConfig({ } }, oidc: { + middleware: { + globalMiddlewareEnabled: false, // Disable automatic middleware - prevents redirect loops! + }, providers: { keycloak: { audience: 'account', diff --git a/pages/dashboard/keycloak-test.vue b/pages/dashboard/keycloak-test.vue deleted file mode 100644 index 5d076dd..0000000 --- a/pages/dashboard/keycloak-test.vue +++ /dev/null @@ -1,249 +0,0 @@ - - - - - Keycloak Integration Test - Test the Keycloak SSO integration and debug any issues - - - - - - - - Configuration - - {{ configInfo }} - - - - - - - - Current Status - - - Initialized: {{ keycloak.isInitialized.value }} - - - - Authenticated: {{ keycloak.isAuthenticated.value }} - - - - Auth Source: {{ unifiedAuth.authSource.value || 'None' }} - - - - - - - - - - - User Information - - {{ JSON.stringify(unifiedAuth.user.value, null, 2) }} - - - - - - - - Actions - - - Initialize Keycloak - - - - Test Login - - - - Test Logout - - - - Refresh Status - - - - - - - - - - - - Debug Logs - - Clear - - - - - - [{{ log.timestamp }}] {{ log.level.toUpperCase() }}: {{ log.message }} - - {{ JSON.stringify(log.data, null, 2) }} - - - - - - - - - -
Test the Keycloak SSO integration and debug any issues
{{ configInfo }}
{{ JSON.stringify(unifiedAuth.user.value, null, 2) }}
{{ JSON.stringify(log.data, null, 2) }}