From 2c6eb888a80c3abd4fe1abcde421373f83561db8 Mon Sep 17 00:00:00 2001 From: Ralf Haferkamp Date: Mon, 5 Sep 2022 16:59:03 +0200 Subject: [PATCH] proxy: Clarify comment --- services/proxy/pkg/middleware/authentication.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/proxy/pkg/middleware/authentication.go b/services/proxy/pkg/middleware/authentication.go index 3e18e3ab44..90ad1e6fba 100644 --- a/services/proxy/pkg/middleware/authentication.go +++ b/services/proxy/pkg/middleware/authentication.go @@ -51,7 +51,8 @@ func Authentication(auths []Authenticator, opts ...Option) func(next http.Handle return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { ri := router.ContextRoutingInfo(r.Context()) if isOIDCTokenAuth(r) || ri.IsRouteUnprotected() { - // The authentication for this request is handled by the IdP. + // Either this is a request that does not need any authentication or + // the authentication for this request is handled by the IdP. next.ServeHTTP(w, r) return }