shiftkey / desktop

Fork of GitHub Desktop to support various Linux distributions
MIT License
6.83k stars 518 forks source link

How to approve organization access? #948

Open Arcalise08 opened 1 year ago

Arcalise08 commented 1 year ago

I'm an admin of my organization. And when i login to this fork of github desktop, It has me link my account which mentions my organization with a green checkmark. But when i clone, It says im not authenticated. I saw the known issues mention something like this. And it says an admin needs to approve the app. But its not requesting anything for me to approve. Is that something i need to do? My other apps automatically submit a request when i login to them.

shiftkey commented 1 year ago

I need more details from the application to be able to troubleshoot further. Please check the logs created at ~/.config/GitHub\ Desktop/logs/ from around the time of the issue to see if there's any helpful messages that might explain the underlying behaviour.

Arcalise08 commented 1 year ago

Its not really an issue as much as it is a question.

If i remove the Third-party application access policy restrictions. Everything works perfectly. I don't want to do that as a long term solution though. And its not popping up under my organization to approve the application. I wasnt sure if there was something more I had to do so that it pops up in my Third-party application access policy screen in github.

Arcalise08 commented 1 year ago

Heres the relevant logs

2023-10-22T21:37:54.844Z - info: [ui] [Welcome] advancing to step: ConfigureGit
2023-10-22T21:37:54.867Z - info: [ui] [Welcome] no sign in step found. ignoring...
2023-10-22T21:37:54.877Z - info: [ui] [Welcome] no sign in step found. ignoring...
2023-10-22T21:37:55.101Z - info: [ui] Subscribed 'Arcalise08' to Alive channel
2023-10-22T21:38:36.934Z - error: [ui] Failed to look up repository clone info for 'https://github.com/Tiger-Correctional-Services/Core.git'
Error: Although you appear to have the correct authorization credentials, the `Tiger-Correctional-Services` 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 _t (/home/arcalise08/webpack:/[name]/app/src/lib/http.ts:178:11)
    at gn.fetchRepositoryCloneInfo (/home/arcalise08/webpack:/[name]/app/src/lib/api.ts:789:11)
    at Object.clone [as onSubmit] (/home/arcalise08/webpack:/[name]/app/src/ui/clone-repository/clone-repository.tsx:710:11)

In my own OAuth applications i can see that it does have organization access

image

But its not requesting access in my organization

image

Hopefully thats enough info to figure out what the issue is. Apologizes if its something simple im missing here.

LarveyOfficial commented 11 months ago

Can confirm this issue still occurs, same error as stated above.

1vanK commented 11 months ago

Same problem

1vanK commented 11 months ago

I just can't push commits to my organizations repositories (I can push to my personal repositories). In a organization settings, I can click Remove restrictions button and this solves the problem. In Windows I have no this problem.

Снимок экрана от 2023-11-18 20-51-22

I also tried clearing all permissions in my personal profile settings and authorizing the app again and allowing access to all organizations, but that didn't help.

Arcalise08 commented 11 months ago

I just can't push commits to my organizations repositories (I can push to my personal repositories). In a organization settings, I can click Remove restrictions button and this solves the problem. In Windows I have no this problem.

Снимок экрана от 2023-11-18 20-51-22

I also tried clearing all permissions in my personal profile settings and authorizing the app again and allowing access to all organizations, but that didn't help.

Yeah I did mention removing restrictions works. But if you working in a larger organization you're not going to want to leave restrictions off. That's a huge security risk

1vanK commented 11 months ago

My Linux distribution is Linux Mint 21.2, if that makes any difference. Used binary: GitHubDesktop-linux-amd64-3.3.3-linux2.deb

theofficialgman commented 10 months ago

likely a duplicate of https://github.com/shiftkey/desktop/issues/217

kov-lucas commented 6 months ago

Same issue here

Amsoht commented 5 months ago

same issue here

ken1th commented 2 months ago

Still have the issue

Arcalise08 commented 2 weeks ago

My issue was solved with this answer below

@bherbruck if it not showing in your org's third-party list then, you need to go to your Account Setting -->Integrations -->Applications -->Authorized OAuth Apps --> Click on "The GitHub Desktop Development App" --> Under Organization access sent a request to your Org's.

Originally posted by @kailashzversal in https://github.com/desktop/desktop/issues/13226#issuecomment-1031096170