From efaf33a4f402b1327465e09d05b87e5f61c7ecc6 Mon Sep 17 00:00:00 2001 From: josedario87 Date: Sun, 12 Oct 2025 03:19:00 -0600 Subject: [PATCH] fix: corregir endpoint de logout de Authentik MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Cambiar de /outpost.goauthentik.io/sign_out a endpoint correcto - Usar flujo de invalidación por defecto de Authentik - Endpoint: https://authentik.nucleoriofrio.com/if/flow/default-invalidation-flow/ --- composables/useAuth.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/composables/useAuth.ts b/composables/useAuth.ts index aeae531..d5905cc 100644 --- a/composables/useAuth.ts +++ b/composables/useAuth.ts @@ -112,10 +112,10 @@ export const useAuth = () => { // Marcar como no autenticado y desregistrar SW await markUnauthenticated() - // Navegar al endpoint de logout de Authentik - // Esto cerrará la sesión y redirigirá al login - console.log('[Auth] Navigating to Authentik logout endpoint...') - window.location.href = '/outpost.goauthentik.io/sign_out' + // Navegar directamente al servidor de Authentik para logout + // Authentik tiene un flujo de invalidación por defecto que cierra la sesión + console.log('[Auth] Navigating to Authentik logout...') + window.location.href = 'https://authentik.nucleoriofrio.com/if/flow/default-invalidation-flow/' } const markUnauthenticated = async () => {