mirror of
https://github.com/lukaszraczylo/traefikoidc.git
synced 2026-06-05 22:44:17 +00:00
Fix: Fix the redirection when the user session expired or
was not preserved by traefik server.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user