Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Sourcetree for Mac 2.7.6 fails to Oauth with Bitbucket

I'm trying to oauth into my hosted Bitbucket account. I'm able to login (including with and without MFA enabled). However the redirect is going to a listing of my repos, not to the auth return needed for Sourcetree to authenticate me. Is there something wrong in my configuration?

9 answers

I managed to eventually login by doing this:


  1. Switch to Basic auth and type in my email address for the user name.
  2. Generate an SSH key.
  3. Try to Save.
  4. SourceTree will complain that you should use your username instead of an email address.
  5. Switch to OAuth and try connecting again.
  6. You should now be able to login and "Grant Access" to SourceTree.
  7. Re-generate your SSH key.

Not sure if this will work for anyone else, but that did the trick for me.

Worked for one of my accounts. Not for the other.

Just wanted to chime in I'm having this same issue - trying to add bitbucket account via oauth to OSX Sourcetree results in just logging in inside the popup rather than authenticating

Same problem here

I'm experiencing the same issue.


Same issue for me ...


any update on this?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

7,103 views 5 13
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you