From 44fec75b429e6d4e3dd140f8889f1aef0f9ee338 Mon Sep 17 00:00:00 2001 From: cclohmar Date: Mon, 15 Jun 2026 06:48:03 +0000 Subject: [PATCH] fix(auth): redirect to Authelia /logout instead of end-session --- src/main.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main.go b/src/main.go index 2030d44..f2b29e8 100644 --- a/src/main.go +++ b/src/main.go @@ -7,7 +7,6 @@ import ( "fmt" "log/slog" "net/http" - "net/url" "os" "os/signal" "path/filepath" @@ -133,9 +132,8 @@ func main() { HttpOnly: true, SameSite: http.SameSiteStrictMode, }) - // Redirect to Authelia's end session to also clear the Authelia session - logoutURL := fmt.Sprintf("%s/api/oidc/end-session?client_id=%s&post_logout_redirect_uri=%s", - cfg.OIDC.IssuerURL, cfg.OIDC.ClientID, url.QueryEscape(cfg.OIDC.RedirectURL)) + // Redirect to Authelia's logout page to clear Authelia session + logoutURL := fmt.Sprintf("%s/logout", cfg.OIDC.IssuerURL) http.Redirect(w, r, logoutURL, http.StatusFound) })