Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub Desktop for Linux fails authentication in cloning a repo requiring a PAT. #740

Closed
gtrevi opened this issue Jul 19, 2022 · 8 comments

Comments

@gtrevi
Copy link

gtrevi commented Jul 19, 2022

The problem

On Ubuntu 20.04, cloning a private repo on GitHub requiring PAT fails, whereas both bare git command line and GitHub Desktop for Windows can perfectly clone the repo just fine, with the same PAT credentials.
This issue is happening only when using GitHub Desktop for Linux

My PAT is generated with all permissions enabled.

Release version

Version 2.9.3-linux3 (x64)

Operating system

Ubuntu 20.04.4 LTS

Steps to reproduce the behavior

Just go for "Clone a repository from the internet..." on a Private repo, requiring PAT authentication.

Log files

2022-07-19.desktop.production.log

Screenshots

image

Additional context

No response

@Chifouuu
Copy link

I have the same problem

@shiftkey
Copy link
Owner

Just go for "Clone a repository from the internet..." on a Private repo, requiring PAT authentication.

@gtrevi @Chifouuu is this a repository belonging to an organization?

@Chifouuu
Copy link

yes

@shiftkey
Copy link
Owner

shiftkey commented Aug 2, 2022

I believe this is #217 and organizations having OAuth application restrictions enabled. I'm not 100% sure why a PAT wouldn't work with this case but it's a known difference between this and the Windows build (with this one being unofficial).

I'd suggest trying to add the repository manually and seeing if the fetch/push/pull encounters the same issue.

@github-actions
Copy link

github-actions bot commented Aug 2, 2022

Thank you for your issue!
We haven’t gotten a response to our questions above. With only the information that is currently in the issue, we don’t have enough information to take action. We’re going to close this but don’t hesitate to reach out if you have or find the answers we need. If you answer our questions above, this issue will automatically reopen.

@github-actions github-actions bot closed this as completed Aug 2, 2022
@gtrevi
Copy link
Author

gtrevi commented Aug 4, 2022

@shiftkey thanks for looking into this.
Cloning through the CLI, and then adding them as local repos works, but unfortunately, fetch/push/pull do encounter the same issue.

@ShinoharaHaruna
Copy link

Same problem here. Since I do not want to modify the git url using PAT, nor do I want to return to git command line, my temporary method is to cancel all restrictions in <Organization>|Settings|Third-party Access|OAuth application policy|Third-party application access policy.

@shiftkey
Copy link
Owner

Please follow along with #217 which is the root cause here.

@shiftkey shiftkey closed this as not planned Won't fix, can't repro, duplicate, stale Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants