Fix: Fix the redirection when the user session expired or

was not preserved by traefik server.
This commit is contained in:
2024-09-02 21:22:12 +01:00
parent 7e8b4ecea7
commit dca2b5214c
+1
View File
@@ -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