Copilot enterprise login fails due to GitHub.com client ID #8190

Closed
opened 2026-02-16 18:09:23 -05:00 by yindo · 1 comment
Owner

Originally created by @stomby on GitHub (Jan 31, 2026).

Originally assigned to: @thdxr on GitHub.

Steps:

  • opencode auth login → Copilot → Enterprise → enter enterprise domain

Actual:

  • Device flow returns 404 immediately.

Expected:

  • Enterprise auth should succeed.

Cause:

  • packages/opencode/src/plugin/copilot.ts always uses the GitHub.com OAuth client ID.

Fix:

  • Use the enterprise Copilot client ID for enterprise deployments (keep current ID for github.com).
Originally created by @stomby on GitHub (Jan 31, 2026). Originally assigned to: @thdxr on GitHub. Steps: - `opencode auth login` → Copilot → Enterprise → enter enterprise domain Actual: - Device flow returns 404 immediately. Expected: - Enterprise auth should succeed. Cause: - `packages/opencode/src/plugin/copilot.ts` always uses the GitHub.com OAuth client ID. Fix: - Use the enterprise Copilot client ID for enterprise deployments (keep current ID for github.com).
yindo closed this issue 2026-02-16 18:09:23 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 31, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #10612: The OAuth App CLIENT_ID for GitHub Enterprise (GHE) is best to be customizable
  • #3936: Github Enterprise authorization
  • #11105: Anthropic models fail with 404 on GitHub Enterprise (GHE.com)
  • #11157: Compaction fails with 400 Bad Request when using GitHub Copilot Enterprise

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 31, 2026): This issue might be a duplicate of existing issues. Please check: - #10612: The OAuth App CLIENT_ID for GitHub Enterprise (GHE) is best to be customizable - #3936: Github Enterprise authorization - #11105: Anthropic models fail with 404 on GitHub Enterprise (GHE.com) - #11157: Compaction fails with 400 Bad Request when using GitHub Copilot Enterprise Feel free to ignore if none of these address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#8190