From a4863b6a673f767548c30f674c5617f1416310ed Mon Sep 17 00:00:00 2001 From: Codex Date: Tue, 5 May 2026 09:37:52 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=A1=D0=9F=D0=A0=D0=90=D0=92=D0=9B?= =?UTF-8?q?=D0=95=D0=9D=D0=98=D0=95=20-=20NODEDC=20AUTH:=20=D0=B2=D0=BE?= =?UTF-8?q?=D0=B7=D0=B2=D1=80=D0=B0=D1=89=D0=B0=D1=82=D1=8C=20=D0=BF=D0=BE?= =?UTF-8?q?=D1=81=D0=BB=D0=B5=20direct=20logout-flow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- infra/authentik/custom-templates/base/header_js.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/infra/authentik/custom-templates/base/header_js.html b/infra/authentik/custom-templates/base/header_js.html index f34e333..7f1f237 100644 --- a/infra/authentik/custom-templates/base/header_js.html +++ b/infra/authentik/custom-templates/base/header_js.html @@ -303,6 +303,7 @@ const redirectUrl = getSafePostLogoutRedirect(); if (!redirectUrl) return; + const isInvalidationFlow = window.location.pathname.includes("/if/flow/default-invalidation-flow"); const text = root.textContent || ""; const logoutComplete = [ "Logout successful", @@ -313,13 +314,13 @@ "Выход выполнен", ].some((message) => text.includes(message)); - if (!logoutComplete) return; + if (!logoutComplete && !isInvalidationFlow) return; document.body.dataset.nodedcLogoutRedirected = "true"; document.body.classList.add("nodedc-auth-submitting"); window.setTimeout(() => { window.location.replace(redirectUrl); - }, 150); + }, isInvalidationFlow ? 1600 : 150); } let scheduled = false;