From 10949b11f4a32173e540cff3442f4d36eac250a3 Mon Sep 17 00:00:00 2001 From: TwiN Date: Sun, 2 Jan 2022 21:37:15 -0500 Subject: [PATCH] fix(oidc): Default isAuthenticated to true, not false --- controller/handler/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/handler/config.go b/controller/handler/config.go index 7190d633..c7c62319 100644 --- a/controller/handler/config.go +++ b/controller/handler/config.go @@ -14,7 +14,7 @@ type ConfigHandler struct { func (handler ConfigHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { hasOIDC := false - isAuthenticated := false // Default to true if no security config is set + isAuthenticated := true // Default to true if no security config is set if handler.securityConfig != nil { hasOIDC = handler.securityConfig.OIDC != nil isAuthenticated = handler.securityConfig.IsAuthenticated(r)