Unified · Split
| @@ -514,7 +514,7 @@ export default function AddGoogleDiscoverySource(props: { · 513 unmodified lines | |||
| 514 | discoveryUrl: discoveryUrl.trim(), | 514 | discoveryUrl: discoveryUrl.trim(), |
| 515 | clientId: clientId.trim(), | 515 | clientId: clientId.trim(), |
| 516 | clientSecretSecretId, | 516 | clientSecretSecretId, |
| 517 | redirectUrl: `${window.location.origin}/v1/google-discovery/oauth/callback`, | 517 | redirectUrl: `${window.location.origin}/api/google-discovery/oauth/callback`, |
| 518 | scopes: probe.scopes, | 518 | scopes: probe.scopes, |
| 519 | }, | 519 | }, |
| 520 | }); | 520 | }); |
| @@ -248,7 +248,7 @@ export default function AddMcpSource(props: { · 247 unmodified lines | |||
| 248 | const handleOAuth = useCallback(async () => { | 248 | const handleOAuth = useCallback(async () => { |
| 249 | dispatch({ type: "oauth-start" }); | 249 | dispatch({ type: "oauth-start" }); |
| 250 | try { | 250 | try { |
| 251 | const redirectUrl = `${window.location.origin}/v1/mcp/oauth/callback`; | 251 | const redirectUrl = `${window.location.origin}/api/mcp/oauth/callback`; |
| 252 | const result = await doStartOAuth({ | 252 | const result = await doStartOAuth({ |
| 253 | path: { scopeId }, | 253 | path: { scopeId }, |
| 254 | payload: { endpoint: state.url.trim(), redirectUrl }, | 254 | payload: { endpoint: state.url.trim(), redirectUrl }, |