diff --git a/src/main.go b/src/main.go index 90abaa3..2034490 100644 --- a/src/main.go +++ b/src/main.go @@ -132,7 +132,7 @@ func main() { HttpOnly: true, SameSite: http.SameSiteLaxMode, }) - // Clear NextWks session and set force-login flag + // Clear NextWks session and redirect to workspace http.SetCookie(w, &http.Cookie{ Name: "nextwks_session", Value: "", @@ -142,15 +142,6 @@ func main() { HttpOnly: true, SameSite: http.SameSiteLaxMode, }) - http.SetCookie(w, &http.Cookie{ - Name: "force_login", - Value: "1", - Path: "/", - Domain: cfg.OIDC.Domain, - MaxAge: 300, - HttpOnly: true, - SameSite: http.SameSiteLaxMode, - }) http.Redirect(w, r, "/", http.StatusFound) })