You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OAuth fallback and downstream error scope. This establishes fallback behavior, not a demonstrated exploitable authorization bypass; the backend may reject the unauthenticated request.
Activity
Koiyd commentedon Oct 15, 2026
我来认领这个任务。
修复方案
next.exchange之后不再挂onErrorResume。下游异常直接向上传播,同一请求只发一次。这是纯 bug,不受任何开关控制。McpGatewayOAuthProperties增加strictMode字段,默认true。Mono.error,next.exchange零调用。严格模式的默认值
我认为应该默认开启严格模式。用户显式开启了 OAuth,就是要求请求必须带认证。token 拿不到时静默发出无认证请求,违背了这个配置意图,而且只有一条 warn 日志,很难在生产环境察觉。 @Aias00