-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Using access token as a member of an organization does not correctly authenticate #1775
Comments
@egee-irl the Octokit libraries don't really care about the source of the token, as it will always send Personal access tokens:
OAuth applications:
My gut feeling is that the organization has enabled "OAuth App access restrictions" which means that applications need to be approved by the organization admin before the app can access the organization data. Can you confirm that? |
I agree completely. Adding this info here (since this came up during my troubleshooting search): I hesitated to grant my oauth token the scope for "Full control of private repositories" ( But you do need the top-level |
Closing this out due to inactivity. Please open a fresh issue if there are things you would like to clarify. |
Opened #2002 |
The documentation is grossly unclear in the distinction between an OAuth token for a OAuth Application and a Personal Access Token. However based on everything I've read, I have concluded that using a Personal Access Token does not authenticate correctly for members of an organization.
Use Case:
My GitHub account is associated with an organization for each every repository is private. With the rest API and other Frameworks (node-github), I use my Personal Access Token to authenticate and access the organization's repos.
According to the various documentation, the code to authenticate using OAuth is deceptively simple:
Unless I or the documentation has missed a step, this code does not result in authentication to the organization.
The text was updated successfully, but these errors were encountered: