From d0f97c20d4bd07719e3ec547aac794e9edf3bcec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ralph=20K=C3=BChnert?= Date: Tue, 19 Jan 2021 17:41:02 +0100 Subject: [PATCH] add info as to why an OIDC request failed --- pkg/proxy/handlers.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/proxy/handlers.go b/pkg/proxy/handlers.go index 74b33bfab..416d1a89f 100644 --- a/pkg/proxy/handlers.go +++ b/pkg/proxy/handlers.go @@ -34,6 +34,7 @@ func (p *Proxy) withAuthenticateRequest(handler http.Handler) http.Handler { // Auth request and handle unauthed info, ok, err := p.oidcRequestAuther.AuthenticateRequest(req) if err != nil { + klog.V(6).Infof("OIDC authenticate request failed due to: %q", err) // Since we have failed OIDC auth, we will try a token review, if enabled. tokenReviewHandler.ServeHTTP(rw, req) return