Sourcetree connect to Github with 2FA does not work

Keith Smith April 16, 2018

I have followed all of the instructions.  The instructions say to copy and paste the password.  This doesn't even make sense since when you attempt to connect, SourceTree asks you to log in with a 2FA process and "supposedly" saves the OAUTH token, but nope.  It doesn't.

Creating a separate password pasting in the OAUTH token also does not work. 2FA makes SourceTree absolutely broken.  Is anyone working to make the documentation correct or make the application function properly?

1 answer

0 votes
minnsey
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 17, 2018

Hi

Can you confirm what version of Sourcetree and Git you are using?

In Sourcetree for Windows when you add/edit a GitHub account you have the option to use Basic Auth username/password or OAuth.

If you select OAuth you should be redirected to the browser to login, go through 2FA,, authorize and then be sent an access_token. This access token is then stored in the Windows Vault/Credential Manager for re-use by Sourcetree for REST interactions and by Git for its interactions.

Independently the Git Credential Manager for Windows, bundled with Git for Windows, supports GitHubs 2FA directly. Again it stores its credentials in Windows Credential Manager.

GitHub recently removed support for TLS 1.0 and 1.1 protocols this means you will need to update to Git 2.16 or higher to continue using http URLs for Git remotes.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events