Skip to content

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

Closed

Description

@shaipetel
  • 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.

Activity

  1. vscodebot commented on Mar 29, 2018

    @vscodebot

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

  2. roblourens commented on Apr 1, 2018

    @roblourens
    Member

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

  3. added
    *duplicate
    on Apr 1, 2018
  4. shaipetel commented on Apr 9, 2018

    @shaipetel
    Author

    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.

  5. shaipetel commented on Apr 9, 2018

    @shaipetel
    Author

    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.

  6. removed
    *duplicate
    on Apr 9, 2018
  7. joaomoreno commented on Apr 10, 2018

    @joaomoreno
    Contributor

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

  8. shaipetel commented on Apr 10, 2018

    @shaipetel
    Author

    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

  9. locked and limited conversation to collaborators on May 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions