-
Notifications
You must be signed in to change notification settings - Fork 525
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
Unable to push to organization with OAuth App restrictions #217
Comments
@Raymo111 thanks for the report. Some initial thoughts:
It's weird that you couldn't correctly authenticate here with your username/password. Maybe that was just due to a typo. Maybe it's something else.
Without GitHub Desktop has it's own authentication handler, which is why it unsets Could you try signing out and in again within the app to see if that changes this behaviour? |
@shiftkey I've tried signing out and signing in again, and also confirmed that I'm using the correct username and password. |
@Raymo111 do you know if the organization has OAuth app access restrictions enabled? Because of #72 it might be that the app isn't trusted for this organization. This is different to providing your credentials on the command line, because Desktop requests a token from GitHub which can be revoked at a later time by you. |
@shiftkey Yes, that's the case. Seems like that's enabled by default, and you need to disable it to use GH desktop? |
It's been around since 2015, and I forget when it became the default for newer orgs. There's a process for requesting apps but I think I'd prefer to just setup a different OAuth app and resolve #72. I guess I need to distinguish it from the main project before users request access to orgs like this. |
@shiftkey Perhaps add a note in readme to link to a wiki page on allowing oauth? |
Wait but the main GH desktop doesn't have the enable for organizations option though in profile. Why does the Linux port have it? |
i'm having similar issue. after login through linux version, it will not show any organization repo. and when i try to check out a organization repo, it will error out saying auth failed. when i'm trying to login through browser redirect, the app require a separate Oauth app authentication for organization repo, i'm using ubuntu 19.10 |
I am having the same problem. I can clone and push my repositories or repositories that I have access through GitHub Desktop in Linux, but I cannot with repositories which their owner is a organization. I do not have this problem in GitHub Desktop in Windows. |
Still happening. If you try to go to the folder and push manually this is what I've got:
As the above message mentions, it is no longer possible to authenticate with a regular GitHub Desktop and Personal Access TokensGitHub Desktop is probably outdated and does not support personal access token on Linux. Manually pushing changesGenerating personal access token is a proper way to authenticate and push changes. Tutorial on generating Personal Access Token: Example: Manually temporary resolving this issue for a single git repositoryYou can go into
Then you can go to the GitHub Desktop and press the |
@BoQsc This works! |
Any update? |
Same issue here |
Amazing, this solution fixed my problem. I can push and pull and check out the branches. However, the This is what I get in the dev tools after replacing the URL: [fetchProtectedBranches] unable to list protected branches
Error: Although you appear to have the correct authorization credentials, the `x` organization has enabled OAuth App access restrictions, meaning that data access to third-parties is limited. For more information on these restrictions, including how to enable this app, visit https://docs.github.com/articles/restricting-access-to-your-organization-s-data/
at Dt (/home/aminya/webpack:/[name]/app/src/lib/http.ts:178:11)
at vn.fetchProtectedBranches (/home/aminya/webpack:/[name]/app/src/lib/api.ts:1355:7)
at Zn.updateBranchProtectionsFromAPI (/home/aminya/webpack:/[name]/app/src/lib/stores/app-store.ts:3961:11) |
Still having this issue
|
Still having this issue as well. Usually do what #972 suggests as a workaround. If org is big enough, I just do this:
|
Describe the bug
git push
in command line works, but pushing through GH desktop does not. Same issue with publishing a new branch. It does work when I push to one of my own repositories, but it doesn't if I push to a repo where I have write access but do not own, even when I am the only owner in an organization.Version & OS
2.1.0-linux1
Steps to reproduce the behavior
Expected behavior
I should be able to write to any repo that I have write access to.
Screenshots
Logs
Additional context
Executing
git -c credential.helper= -c protocol.version=2 push origin master:master --progress
from command line and then typing in CORRECT username and password gives:However, just doing
git -c protocol.version=2 push origin master:master --progress
works:So it's an issue with
-c credential.helper=
.The text was updated successfully, but these errors were encountered: