Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

GitHub Enterprise sign-in fails with "No auth flow succeeded" using OAuth and PAT on VPN

未關閉
#488 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
35/100
Issue 類型
缺陷
描述清晰度
需要釐清
活躍度
冷清
技術堆疊
github, typescript, vscode

研究方向

先在連線至 VPN 的情況下,使用報告中的 GitHub Enterprise 主機,在 Windows 11 上重現 OAuth、device-code 和 PAT 流程。檢查 github.gitAuthenticationHosts、github.enterpriseServer 和 github-enterprise.uri 的處理方式,然後驗證是否能透過至少一種受支援的流程完成對報告中 enterprise server 的登入。

由索引模型根據 Issue 內容生成。

描述

bug

🐛 Describe the bug
VS Code fails to authenticate with our GitHub Enterprise server (https://git.cedacrigroup.it) via any supported auth flow.
After attempting both OAuth and Personal Access Token (PAT), the error Sign in failed: Error: No auth flow succeeded is always shown.

🔁 To Reproduce
Steps to reproduce the behavior:
Connected to company VPN
Open VS Code (latest version)

Sign in to GitHub Enterprise:
OAuth → browser opens, but fails to complete flow
Device code → hangs or fails
PAT → accepted, then "No auth flow succeeded" error
VS Code never completes login

✅ Expected behavior
Login to GitHub Enterprise (git.cedacrigroup.it) should complete either via OAuth, device code, or PAT.
The GitHub Pull Requests and Issues extension should be able to authenticate properly.

📷 Screenshots
OAuth failure:
Sign in failed: Error: No auth flow succeeded.
Image

PAT failure:
Same message after entering token.

Extension prompt appears but does not finish.

📦 Extension Version
github.vscode-pull-request-github: 0.112.0
ms-vscode.azure-repos: 0.40.0
github.vscode-github-actions:
0.27.2

VS Code: 1.101.2 (user setup)
Image

OS: Windows 11
VPN: Yes (corporate)

📎 Additional context
The GitHub Enterprise server is reachable in browser (https://git.cedacrigroup.it)
SSO might be enabled on the enterprise server
Tried setting github.gitAuthenticationHosts and github.enterpriseServer in settings.json
Also attempted to manually set github-enterprise.uri

主要語言
TypeScript
星號
661
分支
214
PR 合併指標
30 天內沒有已合併 PR

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

github/vscode-github-actions 的其他 Issue

查看 github/vscode-github-actions 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。