gitbutler icon indicating copy to clipboard operation
gitbutler copied to clipboard

Handle GitHub OAuth restrictions gracefully

Open estib-vega opened this issue 1 year ago • 7 comments

Version

0.13.2

Operating System

macOS

Distribution Method

dmg (Apple Silicon)

Describe the issue

Discord message

https://discord.com/channels/1060193121130000425/1073202153163857920/1296480103785828386

It seems GitHub returns some API errors with warning, claiming that the user does have the correct credentials, but some restrictions apply.

Not super sure how we should handle this though. Probably raise the message to the user and have the option to not display again.

Error message

Although you appear to have the correct authorization credentials, the <ORG NAME> organization has enabled OAuth App access restrictions, meaning that data access to third-parties is limited.

How to reproduce

No response

Expected behavior

No response

Relevant log output

No response

estib-vega avatar Oct 17 '24 14:10 estib-vega

I assume this is referring to errors like the following, right?

Although you appear to have the correct authorization credentials, the octoorg organization has enabled OAuth App access restrictions, meaning that data access to third-parties is limited.

esolitos avatar Oct 18 '24 07:10 esolitos

Although you appear to have the correct authorization credentials, the octoorg organization has enabled OAuth App access restrictions, meaning that data access to third-parties is limited.

@esolitos Correct. I'll add that message to the description to make this issue easier to identify :)

estib-vega avatar Oct 18 '24 08:10 estib-vega

Would it be an option to disable the check for PRs for a given project?

Having to close 5-6 large & permanent error popups each time I do a rebase is kinda annoying. 🥲

esolitos avatar Oct 25 '24 12:10 esolitos

Whenever I work on an organization's repository, I get an error message popup with every action I take. Even if I fork the repo to my personal account, the errors persist. Since this issue started, I haven’t been able to create pull requests to the organization’s repo at all—they fail with a similar error. Interestingly, everything works fine when I’m working on fully personal projects.

shanujha avatar Dec 03 '24 04:12 shanujha

Im getting this error

Although you appear to have the correct authorization credentials, the <ORG NAME> organization has enabled OAuth App access restrictions, meaning that data access to third-parties is limited.

Is there a way for my organization to add the gitbutler oauth app at all? I don't have admin permissions on my org and im not sure what to tell the GitHub admin.

noqcks avatar Nov 03 '25 23:11 noqcks

The auth for the enterprise works with a personal access token, and no OAuth app is used. That way, no admin involvement is needed, but the app is basically you without distinction.

Byron avatar Nov 04 '25 04:11 Byron

Also for non-Enterprise users, you are now able to authenticate through PAT, which should bypass the OAuth restrictions completely.

estib-vega avatar Nov 04 '25 08:11 estib-vega