Sourcetree isn't authenticating with Bitbucket using OAuth

Marty Vowles February 14, 2018

I'm using Sourcetree with Bitbucket on Windows. I'm currently at 2.4.8.0, but have been using current versions for about a year. When I try to clone a remote repository authentication always fails. What I see is this:Sourcetree Bug.png

 If I right click on the account, select Edit Account, and then select Refresh OAuth Token, then I'm taken to a blank web page in my active browser and the account changes from this:

image.png

To this:

image.png

I'm using a Google account for authentication on BitBucket and I've verified that Google is allowing access for Bitbucket. What am I doing wrong here?

1 answer

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

Hi
The final screens suggests you have successfully received an OAuth access_token so REST calls and Git actions should all work.

If you refresh your taken, as you have been doing,  and then before opening the remote repositories list can you then run a fetch against a Bitbucket repo?

Does tie effect your ability to list remotes? The Bitbucket OAuth token should auto refresh every hour.

Finally can you confirm you are using Git >= 2.15?

Marty Vowles February 22, 2018

I am able to get the token, but it apparently never refreshes automatically. I have to go through the above process every time I want to clone a remote server. If I go through the above process I am able to clone successfully; I just don't understand why I should have to do it every time I clone a new remote. What could break the automatic refresh process?

I can list remotes for existing locals, but I can't list remote repositories when on the New Tab: Remote Repositories page.

git version 2.15.1.windows.2

minnsey
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 23, 2018

Hi

I have experienced similar issues when I have multiple, older versions of git installed and something like Visual Studio Code is triggering a copy of git that uses an old version of GCM that does not understand Bitbucket OAuth.

Do you have any other copies of Git installed?

Using the terminal can you run 

git credential-manager version

and post the result?

Marty Vowles February 23, 2018

$ git credential-manager version
Git Credential Manager for Windows version 1.12.0

minnsey
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 6, 2018

Can you try updating to Git >= 2.16 which ships with Git Credential Manager 1.14.0

Marty Vowles April 3, 2018

I wasn't able to get a good package for Git Credential Manager, but I installed a standalone Git 2.16, but I'm still forced to go through the above process for remote access.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events