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;
|
||||
}
|
||||
|
||||
// These providers rely on pasted-code UX with their own localhost callbacks,
|
||||
// so redirect_uri must remain untouched.
|
||||
if (providerId === "openai-codex" || providerId === "anthropic") {
|
||||
// These providers do not use a redirect_uri-based callback:
|
||||
// - openai-codex, anthropic: pasted-code UX with their own localhost callbacks
|
||||
// - github-copilot: OAuth device-code flow (verification_uri has no state/redirect_uri)
|
||||
if (providerId === "openai-codex" || providerId === "anthropic" || providerId === "github-copilot") {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user