From dca2b5214c61737581dce76b3229430b2203f17f Mon Sep 17 00:00:00 2001 From: Lukasz Raczylo Date: Mon, 2 Sep 2024 21:22:12 +0100 Subject: [PATCH] Fix: Fix the redirection when the user session expired or was not preserved by traefik server. --- main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/main.go b/main.go index 2f24d7c..7c23e4f 100644 --- a/main.go +++ b/main.go @@ -267,6 +267,7 @@ func (t *TraefikOidc) ServeHTTP(rw http.ResponseWriter, req *http.Request) { // and the session was cleared, but user tries to refresh the page // and different traefik instance is used. http.Redirect(rw, req, "/", http.StatusFound) + return } http.Error(rw, "Authentication failed", http.StatusUnauthorized) return