Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VSCode on Mac cannot login to GitHub with 2FA on #46964

Closed
shaipetel opened this issue Mar 29, 2018 · 6 comments

Comments

@shaipetel
Copy link

commented Mar 29, 2018

  • VSCode Version: 1.21
  • OS Version: MacOS

Steps to Reproduce:

  1. Open a Github account
  2. Enable 2FA where it sends you an SMS to verify login
  3. Open a repository on GitHub
  4. Clone it locally, make some changes
  5. Try to sync your changes - it will fail with wrong user name / password error after prompting you for user name and password.

Does this issue occur when all extensions are disabled?: Yes/No
Yes

Possible duplicate of: #490 but this one is for Mac OS. The other issue had workarounds for Windows PC.

@vscodebot

This comment has been minimized.

Copy link

commented Mar 29, 2018

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

@roblourens

This comment has been minimized.

Copy link
Member

commented Apr 1, 2018

I believe this is a duplicate of #490, (given that #43257 is))

@shaipetel

This comment has been minimized.

Copy link
Author

commented Apr 9, 2018

@roblourens No its not a duplicate. The issue is the same but like I said - this one is specifically for Mac OS.

Why is that significant? Because all the workarounds on the other 2 issues are for windows only.

Since they discuss and accept workarounds for windows, and these have nothing to do with Mac OS - I think there should be a separate issue for Mac OS.

So, you may want to link the issues together but I don't think this is a duplicate since the solution needed or workaround should be different.

@shaipetel

This comment has been minimized.

Copy link
Author

commented Apr 9, 2018

FYI, found workaround that works for MacOS in VSCode as well as git command line:

Visit your "developer settings" in github and generate a "personal access token".

You can use that token with your username as the password in VSCode and that seems to work.

@joaomoreno

This comment has been minimized.

Copy link
Member

commented Apr 10, 2018

Yeah you can use a personal access token or, even better, SSH keys for GitHub auth. That's what I do.

@joaomoreno joaomoreno closed this Apr 10, 2018

@shaipetel

This comment has been minimized.

Copy link
Author

commented Apr 10, 2018

Great, thanks. I wonder why this info wan't easy to find at first - ppl just saying its unusable in VSCode on a Mac.

got it though so no problem

@vscodebot vscodebot bot locked and limited conversation to collaborators May 25, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
3 participants
You can’t perform that action at this time.