SourceTree keeps asking to authenticate again over and over...

I'm using source tree, am getting fetch updates but on a fairly regular schedule, get a popup to re-authenticate. Why? How do I fix it?

sourcetree-authbox.jpg

4 answers

The best way to avoid this would be to use SSH but Stash should be able to store your password.

 

Go to Tools->Options->Authentication and make sure that your hostname, username, and password are all saved there.

 

Screen Shot 2015-05-04 at 1.33.55 PM.png

I have the same problem, and my password is supposedly saved in SourceTree...

Josh Noe I'm New Here May 09, 2017

I've resorted to removing all repos from Sourcetree except for one, which uses SSH. I still get this incessant popup.

2 votes

Hi

 

I had the same. Very annoying. Finally I figured out it had something to do with my account being remembered twice. As myRepoSiteName.com and http://myRepoSiteName.com ->

remove the second one as short version will be added automatically. It helped in my case. Hope it works for you as well.

 

Best

Adas

Ty Adam!!
I had Bitbucket account saved in the first and second position (short and long version) in the "saved passwords " list.

Source Tree kept asking the third saved password, continuously.

I deleted the long Bitbucket version. Your solution worked for me!!

Luigi

Yes - this solved, I had >1 account saved as well.

Add you BitBucket account, use the Oauth verify account - then ensure you only have one BitBucket account - set that one as default - close down SourceTree and start up again - finally the incessant prompt gone - +1 vote for this.

Switching to Oauth verify worked. Thank you! This was maddening ... 

0 votes

Remove any default user names from the authentication tab, and always use urls with myusername@www.xxx.xxx format. Remember password will work again.

Remove all other authentications section in sourcetree other than git hub.

Then click Add or either go to Hosted repositories(to quickly check if it was successful) and click on edit accounts.

In credentials select OAuth and select refresh token. You will be redirected to bitbucket website and click on Grant access.

Now goto your fresh account in sourcetree and select Set as Default.

Done. Now you should see all your repositories in hosted repositories. It shows login error if it is not successful

Suggest an answer

Log in or Join to answer

Stay in touch

Be the first to know what's trending on Atlassian Community