Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

OAuth authentication results in "repository not found"

Hi, 

I have been using sourcetree  (version 3.3.8) with a github repository and git (version 2.26). 
Till now, I have used basic authentication (Tools-> Authentication, Hosting service: github, Host URL: https://www.github,com, Preferred protocol: HTTPS, Authentication: Basic) ) and 
it has worked just fine. 

I would like to move to OAuth Authentication, because Github has sent out the following 
notice https://developer.github.com/changes/2020-02-14-deprecating-password-auth/

When I do change to OAuth and press "refresh OAuth Token", a new brower tab opens up
with an empty page and it says "Authentication OK" in sourcetree.
However, if I try to pull or push something, it says 
remote: Repository not found.
fatal: repository '  ... ' not found

I have made sure that  I was logged in into github in an open browser tab before pressing the "refresh OAuth Token" , but that did not make a difference. 

In my github account, I do see sourcetree listed under settings->Applications->Authorized OAuth Apps. 

 

If anybody has any pointers on how to resolve this, I would very much appreciate it.  

 

Thanks, 

 

Ivo 

3 answers

1 accepted

0 votes
Answer accepted

Ivan from Github support pointed us to the right solution.
All kudos to him.


Ivan Zuzak (GitHub Support)
Nov 11, 2020, 8:18 AM UTC
Hi Ivo,
Thanks for following up. Yeah, I'm not sure how much support we can provide since SourceTree isn't something we built so we can't know how it works or why it doesn't do something correctly.
One thing I see is that the organization you're a member of xxx denied the SourcetreeForWindows integration access to its repositories.
When you said "If I subsequently try to pull or push, it says fatal: repository '" not found." -- were you trying to pull or push to a repository from that organization? If so, then this would explain the issues you're having.
Can you please ask one of the owners of the organization to approve the SourcetreeForWindows application in the organization's settings? Here are some instructions:
https://docs.github.com/en/free-pro-team@latest/github/setting-up-and-managing-organizations-and-teams/approving-oauth-apps-for-your-organization
Hope this helps.
Best,
Ivan

I'm using Sourcetree version 4.0.2 and having the exact same issue for months now:

  • only Basic auth works 🤦‍♂️


Can somebody help getting OAuth to work?

As of November 10th, I am still having this issue now using

- git version 2.29.2.windows.2
 - sourcetree 3.3.9 

Any pointer would be helpful. 

 

Thanks, 

 

Ivo 

Suggest an answer

Log in or Sign up to answer
TAGS
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...

3,254 views 4 5
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