Skip to content
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

GitHub App login fails with "Access denied" #2651

Open
1 of 2 tasks
timebertt opened this issue Apr 18, 2021 · 3 comments
Open
1 of 2 tasks

GitHub App login fails with "Access denied" #2651

timebertt opened this issue Apr 18, 2021 · 3 comments
Labels
bug Related to something that's working correctly

Comments

@timebertt
Copy link

Are you experiencing this issue in octobox.io or your own instance?

  • octobox.io
  • My instance

🐞 Problem

I've set up an own Octobox instance, restricted access to a given organization and team and configured a GitHub App according to https://github.com/octobox/octobox/blob/master/docs/INSTALLATION.md#running-octobox-as-a-github-app.

The restricted access works fine, I'm able to login (as I'm part of the org/team) and everything looks good (OAuth flow works).
When I try to login to the GitHub App from Octobox, the authorization flow itself also works (the App is shown as an authorized App in my GitHub settings), but I get a red banner saying Access denied. (it seems the org/team check fails here) and the settings page still shows the button to login to the GitHub App.

When I disable restricted access again, logging in to the GitHub App still works fine, though I don't get the red banner and the settings page reflect the login accordingly.

🎯 Goal

Enable to run Octobox as a GitHub App and simultaneously restrict access to a given org/team.

@andrew andrew added the bug Related to something that's working correctly label Apr 19, 2021
@andrew
Copy link
Member

andrew commented Apr 19, 2021

Sounds like a bug, I've not heard of anyone using the restrict access feature whilst running octobox as a github app before (i've not done it myself either)

@timebertt
Copy link
Author

Thanks @andrew for your reply!
Is it then still a valid usecase to run Octobox as a GitHub App and still restrict access? Or am I heading in a wrong direction?

@andrew
Copy link
Member

andrew commented Apr 20, 2021

@timebertt yeah I think it's a valid use case, just not once that I've personally tried.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Related to something that's working correctly
Projects
None yet
Development

No branches or pull requests

2 participants