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
4,363,834
Community Members
 
Community Events
168
Community Groups

Authentication failed

Edited

Hello,

 

When I try to do a commit from SourceTree I get a failed authentication message. I do not understand why because I have done this many times in the past and I never had any problem, and I do not think that I changed anything from my last commit, which was some months ago.

I attach the print screen of the error message that I get.

 

Thanks for your help.

 

Regards,

sourcetree_error.png

3 answers

Hello,

My problem is still unsolved. The authentication seems to work when creating the account profile, but then I receive an authentication failure message when I try to push my code. Could I get some more interactive help from someone, via a call or something similar?

Thank you.

0 votes
Mike Corsaro Atlassian Team Apr 17, 2019

Hello! Looks like your credentials might be out-of-date. You can solve this by doing the following:

  • First, make sure you're using the latest version of git and Sourcetree
  • Open Tools > Options and navigate to "Authentication"
  • Find the account associated with that repo (SolarJonathan) under "Accounts" and under "Git Saved Password"
  • Remove all accounts with that username
  • Then re-add the account by selecting "Add"
  • When re-adding the account, make sure "OAuth" is the option selected under "Credentials > Authentication"
  • Hit "Refresh OAuth Token" and login when your browser asks you to
  • Try and perform the action again

Hello Mike,

 

Thank you for your answer and clear instructions.

 

I was able to replicate all the steps that you mentioned, but in the end, I still get the same authentication error message.

 

Any other clues on what might happen?

Mike Corsaro Atlassian Team Apr 18, 2019

Not sure why your credentials are not working. As a fall-back you can switch to using SSH using the following directions: https://confluence.atlassian.com/sourcetreekb/generate-and-load-ssh-keys-into-sourcetree-with-putty-790629663.html

 

Make sure you add the public key into Bitbucket, and make sure you change the remote URL for your repository:

  • Open the repo
  • Click the big "Settings" button in the toolbar
  • Double click on the "origin" URL
  • Change the URL / Path to 'git@bitbucket.org:SolarJonathan/solar_simulation.git'
  • Click "OK", then try again (you might get a prompt from PuTTy to load your SSH key)

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events