Repository navigation
Closed as duplicate
Description
Support multiple GitHub Enterprise URIs for different extensions
Problem
VS Code's github-enterprise authentication provider uses a single global configuration github-enterprise.uri. This creates conflicts when different extensions need to authenticate to different GitHub Enterprise servers.
Real-World Scenario
- GitHub Pull Requests extension needs to connect to
https://github.company.com(company's main github enterprise server as private deployment) - GitHub Copilot extension needs to connect to
https://xxx.ghe.com(Copilot Enterprise instance at public network)
Currently, both extensions use the same github-enterprise auth provider, so they must share the same URI. There's no way to configure them independently.
Current Limitation
{
"github-enterprise.uri": "https://github.company.com"
}Setting this value affects all extensions using github-enterprise authentication. Users cannot:
- Use Pull Requests with their company GHE while using Copilot Enterprise
- Connect Copilot to a different GHE instance than Pull Requests
- Work with any extension-specific GHE configurations
There is no effective workaround.
Proposed Solution
Follow the pattern established by microsoft-authentication extension:
- Register multiple auth providers with unique IDs
- Example:
github-enterprise-secondary,github-enterprise-copilot - Each provider authenticates to its own GHE server
- Extensions specify which provider they need
Questions for Maintainers
- Is this use case worth supporting?
- Should configuration be auto-discovered or explicit?
- What's the preferred naming scheme for provider IDs?
- How should extensions discover the correct provider for their URI?
Benefits
- Each extension can authenticate to its own GHE server
- No conflicts between extensions
- Backward compatible (falls back to
github-enterprise.uriif not specified)
Reacted by Tobias Kleinmann, juergen_schiemann, ChristianMartin, Diogo Sardinha, FredericChucholowski and Francisco Ferreira
Metadata
Metadata
Assignees
Labels
*duplicateIssue identified as a duplicate of another issue(s)
Activity
lordgreg commentedon Feb 20, 2026
this is the issue we are facing at the moment:
at the moment, it is not possible to do that at all.
Sardiogo commentedon Apr 28, 2026
I’d strongly support this feature.
This would be a meaningful improvement for enterprise customers. In real company environments, different GitHub related services often need independent configuration, and a single global github-enterprise.uri becomes a deployment constraint. This specific setting change would remove that blocker and make adoption much easier in enterprise setups.
TylerLeonhardt commentedon Apr 28, 2026
/duplicate #277435
vs-code-engineering commentedon Apr 28, 2026
Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for similar existing issues. See also our issue reporting guidelines.
Happy Coding!