feat(FN-4577): complete Step 1 — exclude github-copilot redirect rewrite
Fusion-Task-Id: FN-4577 Fusion-Task-Lineage: 11846d04-cbc0-414e-b72d-7feeaaac8a98
This commit is contained in:
@@ -149,9 +149,10 @@ export const registerAuthRoutes: ApiRouteRegistrar = (ctx) => {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// These providers rely on pasted-code UX with their own localhost callbacks,
|
// These providers do not use a redirect_uri-based callback:
|
||||||
// so redirect_uri must remain untouched.
|
// - openai-codex, anthropic: pasted-code UX with their own localhost callbacks
|
||||||
if (providerId === "openai-codex" || providerId === "anthropic") {
|
// - github-copilot: OAuth device-code flow (verification_uri has no state/redirect_uri)
|
||||||
|
if (providerId === "openai-codex" || providerId === "anthropic" || providerId === "github-copilot") {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user