After Update of VScode all github authenticaiton fails
See original GitHub issue- Extension version: 0.32.0
- VSCode Version: 1.62.2
- OS: NAME=“Ubuntu” VERSION=“20.04.3 LTS (Focal Fossa)”
Steps to Reproduce:
- Previouisly, I had successfully authenticated via VScode opening browser to be able to authenticate to our github private repo (non enterprise) I’ve been using it for a couple of months with no issue across multiple repo’s we have.
2.I was prompted that there was a vscode update so I went ahead and updated. Upon restarting vscode and continuing work over the same folder (file >> open folder) and updating some code I followed the same steps I always did to save all, then go to “source control” and then “stage” and then add comment and submit, I get an authentication error.
-
I then iterated over attempting to authenticate many times with errors that I failed to record to share here (sorry). Finally I “LOGGED OUT” of my github account, removed the local repo (rm -rf /path/to/local-clone).
-
Returning to vscode I attempted to clone the repo through the UI and was prompted to authenticate, my browser window opened, I authenticated, and then things switched back to vscode. The dialog to select my repo location opens I pick the location I want it. But then I get the following errors.
> git clone https://github.com/mystuff-thats-private/private/private.git /home/thatguy/private --progress
remote: Repository not found.
fatal: Authentication failed for 'mystuff-thats-private/private/private.git/'
This is strange however because at this point I see myself authenticated (small person icon bottom right of screen) to github.
The browser window I had authenticated successfully indicates if things fail to paste a string into vscode but there is no context to do it and simply pasting into the command bar at the top fails on my later attempts during troubleshooting.
On later attempts the output repeats the same thing each time I attempt to “clone repository”
Validating found git in: git
Using git 2.25.1 from git
> git clone https://github.com/mystuff-thats-private/private/private.git --progress
Cloning into '/home/thatdude/private'...
remote: Repository not found.
fatal: Authentication failed for 'https://github.com/mystuff-thats-private/private/private.git'
> git clone https://github.com/mystuff-thats-private/private/private.git --progress
Cloning into '/home/thatdude/private'...
remote: Repository not found.
fatal: Authentication failed for 'https://github.com/mystuff-thats-private/private/private.git'
> git clone https://github.com/mystuff-thats-private/private/private.git /home/thatdude/private --progress
Cloning into '/home/thatdude/private'...
remote: Repository not found.
fatal: Authentication failed for 'https://github.com/mystuff-thats-private/private/private.git'
I have read the other outdated posts that google brought me to (2018) but none of the things indicated seem to match what I’m seeing with being able to log in successfully via browser but having no way to recover from failure and enter the vscode:blah string given to me by the success page in my browser. This is what the browser states:
Success!
Authorization was successful. You will be redirected back to Visual Studio Code
Didn't work?
If you aren't redirected, you can add the token manually.
Your authorization token:
(my token string that starts with vscode://vscode.github-authentication/did-authenticate?windowid=1&code=(none of your business)
1. Copy the token
2. Switch back to VS code.
3. Click Signing in to github.com... in the status bar. <<<< THERE IS NO SUCH CONTEXT WHEN RETURNING TO VSCODE
4. Paste the token and hit enter.
At this point I’m stuck and I have looped over logging back out (small person icon bottom right of vscode sidebar), and getting lost trying to re-trigger the web authentication all over again (I stumble across it after googling around and trying over and over).
Why is there not a “log back into github” functionality tied to that same menu that lets me log out? Or any of the other menus or command items to trigger a context that lets me paste the token string I got from the success web page into? This is far too hard to sort out troubleshooting because I’m lost in a loop… help!
Issue Analytics
- State:
- Created 2 years ago
- Reactions:7
- Comments:16
I am currently experiencing this @tgelite, I upgraded to 1.62.2 yesterday and found out I wasn’t able to authenticate, however I was able to authenticate on my system terminal.
I have downgraded to 1.61.2, and it authenticates fine.
This is a likely bug with the 1.62.2
Turns out this change indeed affected me and I never changed it. After some reading of the docs I found this: https://docs.github.com/en/get-started/getting-started-with-git/caching-your-github-credentials-in-git
My crucial point was the git version: “At a minimum, install version 2.29” I had version 2.27.x and needed to upgrade. So maybe this could help:
git --version
to check if at least 2.29git update-git-for-windows
if you’re running windows.