diff --git a/config/policy.go b/config/policy.go index 22c2fa97c..c81c0831d 100644 --- a/config/policy.go +++ b/config/policy.go @@ -224,7 +224,7 @@ func (p *MCP) HasUpstreamOAuth2() bool { // IsUpstreamClientNeedsAccessToken checks if the route is for the MCP Client and if it needs to pass the upstream access token func (p *MCP) IsUpstreamClientNeedsAccessToken() bool { - return p != nil && p.UpstreamOAuth2 != nil && p.PassUpstreamAccessToken + return p != nil && p.PassUpstreamAccessToken } type UpstreamOAuth2 struct {