Files
vscode/extensions/github-authentication/package.nls.json
T
TylerLeonhardtandCopilot e9cfa3dce9 [4/4] authentication: enable multiple configured enterprise hosts (#338080)
* authentication: enable multiple configured enterprise hosts

Enable unordered enterprise host configuration, host-qualified account selection, and the extension-owned sign-in picker on top of the reviewed engine lifecycle and credential storage layers. Wire trust-aware enrollment and retain the complete eligible session list for platform account preferences.

Part of #277435.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* authentication: restore enterprise URL correction during setup

Validate configured instance URLs before starting authentication. Reuse enterprise input parsing across setup and onboarding, allow cloud and server URLs, and replace only the selected invalid entry while preserving current hosts. Cover cancellation, multiple corrections, keyboard focus, and changes made while the prompt is open.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* authentication: use the legacy enterprise setting in web builds

Default the enterprise enrollment setting to github-enterprise.uri when browser product metadata omits it. An empty key reads the whole configuration object and broke the legacy-only correction test in every browser CI job. Verified the failure before the fix and the affected suites in Chromium, WebKit and Electron afterward.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* authentication: preserve native enterprise session identities

Remove facade ID prefixes and session rewriting. Create account labels in the host engine, showing the instance only for multiple configured hosts and updating cached presentation without recreating engines or rewriting usernames in storage. Route native IDs using session provenance and cached ownership, preserve broker flows, and cover colliding account IDs through core RPC tests. Use async/await for configuration refresh error handling.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* chat: keep Copilot enterprise enrollment on GHE.com

Restore GHE.com-only names and HTTPS URLs in Copilot setup and onboarding, including their examples and validation messages. Keep the generic enterprise authentication provider and configured-URI validation compatible with GHES, and preserve correction and cancellation behavior.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* chat: enroll a cloud instance when only GHES is configured

Require a GHE.com instance before proceeding with Copilot setup while leaving existing GHES authentication configuration intact. Cover both the quick-input and onboarding paths without choosing a default host.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* authentication: keep enterprise account labels stable

Always include the host in enterprise account labels under the fixed GitHub Enterprise provider label. Derive the label suffix once from the engine host and remove the suffix setter, cached relabeling and host-count flags. Preserve native IDs, stored usernames and public GitHub labels; verify menu labels across host additions and removals.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-09-30 12:54:34 -07:00

11 lines
1.9 KiB
JSON

{
"displayName": "GitHub Authentication",
"description": "GitHub Authentication Provider",
"config.github-enterprise.title": "GHE.com & GitHub Enterprise Server Authentication",
"config.github-enterprise.uri.description": "The URI for your GHE.com or GitHub Enterprise Server instance.\n\nExamples:\n* GHE.com: `https://octocat.ghe.com`\n* GitHub Enterprise Server: `https://github.octocat.com`\n\n> **Note:** This should _not_ be set to a GitHub.com URI. If your account exists on GitHub.com or is a GitHub Enterprise Managed User, you do not need any additional configuration and can simply log in to GitHub.",
"config.github-enterprise.uri.deprecation": "Use `#github-enterprise.uris#` instead. This setting is used only when that setting is not configured.",
"config.github-enterprise.uris.description": "The URIs of your GHE.com or GitHub Enterprise Server instances, such as `https://octocat.ghe.com` or `https://github.octocat.com`. Order does not select a default instance. When signing in, choose an instance if more than one is configured.\n\nThis setting takes precedence over `#github-enterprise.uri#`. An explicitly configured empty array disables enterprise instances, even if the deprecated setting is set.\n\nGitHub.com accounts do not need this setting and use the GitHub authentication provider.",
"config.github-authentication.useElectronFetch.description": "When true, uses Electron's built-in fetch function for HTTP requests. When false, uses the Node.js global fetch function. This setting only applies when running in the Electron environment. **Note:** A restart is required for this setting to take effect.",
"config.github-authentication.preferDeviceCodeFlow.description": "When true, prioritize the device code flow for authentication instead of other available flows. This is useful for environments like WSL where the local server or URL handler flows may not work as expected."
}