Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Can't connect to Bitbucket account from Sourcetree "Invalid redirect_uri"


When I try to connect my (freshly installed, but very old versioned) sourcetree to my bitbucket account, after taking my credentials, it tells me:

"Confirm access to your account
Invalid redirect_uri
This integration is misconfigured. Contact the vendor for assistance."

I am trying to run Sourcetree on an old mac (El Capitan, 10.11.16) and installed Sourcetree version 2.7.6.

2 answers

I found the fix


 Screenshot 2020-10-16 110908.png

Took two seconds to get my BitBucket and GitHub connected. It was effortless. 

Yeah this is extremely frustrating and I have no idea how it made it past the most basic QA tests before release. 

It also opens up a million tabs because there is a URL parsing issue in their code. This occurs when you try to use OAuth on 3.3.9 of Sourcetree.

I was once much nicer about it but at this point, it's a sign that they do not care. Thusly it should not be very insulting, perhaps motivating to fix their product. 

Happens in 3.3.8 too. There must be some bad data being passed from their auth server.

Suggest an answer

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

Bug Fix: Sourcetree for Windows authentication error when updating to app password

Hello Sourcetree users!!! With the recent removal of Bitbucket Cloud account passwords for app passwords (please see our Bitbucket Cloud community post for details on why we made this change for se...

60,954 views 127 26
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