Skip to content

Conversation

OlaHulleberg
Copy link

@OlaHulleberg OlaHulleberg commented Sep 9, 2025

Solves

Summary

Add support for GitHub Enterprise Copilot.

Changes

This PR extends the GitHub Copilot authentication system to support both GitHub.com and GitHub Enterprise deployments:

  • Enhanced authentication flow: Users can now choose between GitHub.com and GitHub Enterprise during auth setup
  • Dynamic URL handling: Authentication endpoints are dynamically constructed based on the selected deployment type
  • Separate credential storage: Enterprise credentials are stored separately (github-copilot-enterprise) to avoid conflicts
  • Enterprise provider support: Added dedicated provider configuration for enterprise instances
  • Backward compatibility: Existing GitHub.com authentication continues to work unchanged

Testing

The changes maintain backward compatibility with existing GitHub.com Copilot authentication while adding new enterprise support through a separate
authentication flow.

@OlaHulleberg OlaHulleberg changed the title feat: add GitHub Enterprise Server support for Copilot authentication feat(provider): add GitHub Enterprise Server support for Copilot authentication Sep 9, 2025
@OlaHulleberg OlaHulleberg changed the title feat(provider): add GitHub Enterprise Server support for Copilot authentication feat(provider): add GitHub Enterprise support for Copilot Sep 9, 2025
@OlaHulleberg
Copy link
Author

I will keep rebasing on top so that this branch can be checked out if you want to use Copilot Enterprise with the latest features

@OlaHulleberg OlaHulleberg force-pushed the dev branch 2 times, most recently from 1dcadfb to 5b94852 Compare September 12, 2025 14:05
@jayair jayair assigned jayair and thdxr and unassigned jayair Sep 12, 2025
@OlaHulleberg OlaHulleberg force-pushed the dev branch 2 times, most recently from 2988fcc to 8551924 Compare September 14, 2025 17:13
@OlaHulleberg
Copy link
Author

let me know if there's anything you want changed @thdxr
also feel free to commit to this!

OlaHulleberg and others added 5 commits September 17, 2025 01:53
- Extract URL normalization utilities to reduce code duplication
- Simplify API domain construction logic
- Improve enterprise URL handling consistency between CLI and config
- Allow flexible URL input in auth process with better validation
- Simplify provider logic to only use auth-stored enterpriseUrl
- Update CLI labels for clearer enterprise deployment options
- Remove confusing 'Server' terminology, use 'Enterprise' with descriptive hint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants