proxy: Clarify comment

This commit is contained in:
Ralf Haferkamp
2022-09-05 16:59:03 +02:00
committed by Ralf Haferkamp
parent ab0c82311a
commit 2c6eb888a8

View File

@@ -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
}