fix: corregir endpoint de logout de Authentik
- 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/
This commit is contained in:
@@ -112,10 +112,10 @@ export const useAuth = () => {
|
|||||||
// Marcar como no autenticado y desregistrar SW
|
// Marcar como no autenticado y desregistrar SW
|
||||||
await markUnauthenticated()
|
await markUnauthenticated()
|
||||||
|
|
||||||
// Navegar al endpoint de logout de Authentik
|
// Navegar directamente al servidor de Authentik para logout
|
||||||
// Esto cerrará la sesión y redirigirá al login
|
// Authentik tiene un flujo de invalidación por defecto que cierra la sesión
|
||||||
console.log('[Auth] Navigating to Authentik logout endpoint...')
|
console.log('[Auth] Navigating to Authentik logout...')
|
||||||
window.location.href = '/outpost.goauthentik.io/sign_out'
|
window.location.href = 'https://authentik.nucleoriofrio.com/if/flow/default-invalidation-flow/'
|
||||||
}
|
}
|
||||||
|
|
||||||
const markUnauthenticated = async () => {
|
const markUnauthenticated = async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user