I have previously added Sourcetree to a different PC and managed to connect my account to it and been able to view my repositories from Sourcetree. I have moved to a new PC and am trying to setup Sourcetree again, however, now when I attempt to add my account I cannot edit the host URL and no matter which options I choose, the 'OK' button is always greyed out. On the Bitbucket website I have full access to my repositories. I have also noticed that if I press on the 'Refresh OAuth Token' button I always get redirected to the Bitbucket website and am faced with an 'Invalid redirect_uri' message.


So far I've attempted reinstalling Sourcetree to the latest version (3.1.3.3158) and rolling back to a previous version (2.6.3) but am faced with the same issues.