Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot sign in with GitHub in VSCode

I'm new to stackoverflow, so appologies in advance.

I'm having trouble with signing in GitHub in VSCode on Windows. When i attempt to Sign in with GitHub to use GitHub Pull Requests and Issues', it get's stuck with the status showing: 'Signing in to github.com...'

The GitHub Authentication output shows: 2024-02-27 10:54:46.102 [info] Logging in for the following scopes: read:user repo user:email workflow 2024-02-27 10:54:46.110 [info] Trying without local server... (read:user repo user:email workflow)

Eventually it stops and i get the status: You have not yet finished authorizing this extension to use GitHub. Would you like to try a different way? (local server).

Pressing Yes to the prompt simply restarts the whole process, resulting in the same issue.

It should be noted that i am using a virtual machine.

I'm at a loss on what to do, so any help is appreciated.

I've attempted various ways to sign in, and searching through similar issues, it seems VSCode is not opening browser windows when it should.

like image 460
K_Toft Avatar asked Mar 16 '26 20:03

K_Toft


1 Answers

I had the same issue because my network is behind a corporate firewall. Solved it by going to settings.json in VS Code and setting the proxy:

"http.proxy": "http://username:password@proxyhost:value"

From https://github.com/microsoft/vscode/issues/111824

like image 112
Ze Shen Chin Avatar answered Mar 18 '26 10:03

Ze Shen Chin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!