refactor(agents): hide mcp oauth redirect classifier · openclaw/openclaw@fbfaba0
vincentkoc
·
2026-06-17
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -6,7 +6,6 @@ import { vi } from "vitest";
|
6 | 6 | import { |
7 | 7 | clearMcpOAuthCredentials, |
8 | 8 | createMcpOAuthClientProvider, |
9 | | -isMcpOAuthRedirectRegistrationError, |
10 | 9 | runMcpOAuthLogin, |
11 | 10 | } from "./mcp-oauth.js"; |
12 | 11 | |
@@ -88,15 +87,6 @@ describe("MCP OAuth provider", () => {
|
88 | 87 | expect(provider.redirectUrl).toBe("http://127.0.0.1:8989/oauth/callback"); |
89 | 88 | }); |
90 | 89 | |
91 | | -it("detects redirect registration failures for localhost fallback", () => { |
92 | | -expect( |
93 | | -isMcpOAuthRedirectRegistrationError( |
94 | | -new Error("HTTP 400: invalid_client_metadata redirect_uri must be localhost"), |
95 | | -), |
96 | | -).toBe(true); |
97 | | -expect(isMcpOAuthRedirectRegistrationError(new Error("unauthorized"))).toBe(false); |
98 | | -}); |
99 | | - |
100 | 90 | it("retries MCP OAuth login with localhost after redirect registration rejection", async () => { |
101 | 91 | authMock.mockReset(); |
102 | 92 | authMock |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。