From bde1d83c7b552336c4ecebf02bd8cedb32154ada Mon Sep 17 00:00:00 2001 From: Martti Tamm Date: Tue, 6 Feb 2024 14:16:08 +0200 Subject: [PATCH] Remove response dumping --- server/auth_oidc.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/server/auth_oidc.go b/server/auth_oidc.go index ab07dd66..f90a306b 100644 --- a/server/auth_oidc.go +++ b/server/auth_oidc.go @@ -5,7 +5,6 @@ import ( "fmt" "io" "net/http" - "net/http/httputil" "net/url" "os" "strings" @@ -188,12 +187,6 @@ func (c *OidcConfig) isJwtActive(token string) bool { defer response.Body.Close() if response.StatusCode != http.StatusOK { - byteDump, err := httputil.DumpResponse(response, true) - if err != nil { - fmt.Printf("Failed to dump response: %s\n", err) - } else { - fmt.Print(string(byteDump)) - } fmt.Printf("[WARN] JWT introspection call gave non-200 HTTP status %d "+ "(thus JWT not active)\n", response.StatusCode) return false