desktop icon indicating copy to clipboard operation
desktop copied to clipboard

How to approve organization access?

Open Arcalise08 opened this issue 2 years ago • 15 comments

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.

Arcalise08 avatar Oct 23 '23 00:10 Arcalise08

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.

shiftkey avatar Oct 24 '23 23:10 shiftkey

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 avatar Oct 25 '23 00:10 Arcalise08

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.

Arcalise08 avatar Oct 26 '23 14:10 Arcalise08

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

LarveyOfficial avatar Nov 09 '23 16:11 LarveyOfficial

Same problem

1vanK avatar Nov 18 '23 17:11 1vanK

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.

1vanK avatar Nov 18 '23 17:11 1vanK

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

Arcalise08 avatar Nov 18 '23 18:11 Arcalise08

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

1vanK avatar Nov 18 '23 18:11 1vanK

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

theofficialgman avatar Dec 20 '23 03:12 theofficialgman

Same issue here

kov-lucas avatar Apr 17 '24 09:04 kov-lucas

same issue here

Amsoht avatar May 24 '24 10:05 Amsoht

Still have the issue

ken1th avatar Aug 20 '24 16:08 ken1th