coder / code-server

VS Code in the browser
https://coder.com
MIT License
67.32k stars 5.51k forks source link

Cannot sign in to github #6903

Closed acester822 closed 1 month ago

acester822 commented 1 month ago

Is there an existing issue for this?

OS/Web Information

Steps to Reproduce

  1. Try to sign into github from any extension

Expected

Sign in flow should complete properly

Actual

It never pops up providing me with a token, instead I get this, You have not yet finished authorizing this extension to use GitHub. Would you like to try a different way? (personal access token). When I click that it forwards me to github to make a token, I make it, and when I enter it in codeserver it throws an error, Sign in failed: Error: No auth flow succeeded.

Logs

2024-07-17 09:17:55.090 [error] Error: No auth flow succeeded. at a.GitHubServer.login (/usr/lib/code-server/lib/vscode/extensions/github-authentication/dist/extension.js:1:228252) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async a.GitHubAuthenticationProvider.createSession (/usr/lib/code-server/lib/vscode/extensions/github-authentication/dist/extension.js:1:223487)

Screenshot/Video

No response

Does this bug reproduce in native VS Code?

No, this works as expected in native VS Code

Does this bug reproduce in GitHub Codespaces?

No, this works as expected in GitHub Codespaces

Are you accessing code-server over a secure context?

Notes

This is on a local linux install. On a remote docker version, the sign in works fine, no issues.

acester822 commented 1 month ago

I figured it out, was an issue with proxy settings,

This did NOT work, Settings:

This works fine: Settings: