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

Adding support for GitHub "scope" parameters #28

Open
bnvk opened this issue Mar 14, 2017 · 1 comment
Open

Adding support for GitHub "scope" parameters #28

bnvk opened this issue Mar 14, 2017 · 1 comment

Comments

@bnvk
Copy link

bnvk commented Mar 14, 2017

It would be helpful to specify in the config certain scopes that a user is granting access to. Use case:

  • Deployed instance of Prose + Gatekeeper only want enable people to edit their organization's repos

Perhaps this filtering is already possible somehow I'm just unaware...

@hobbitcode
Copy link

It is possible!

In step #1 of OAuth Steps https://github.com/prose/gatekeeper#oauth-steps add query parameters like you do for client_id you just also add scope like... scope=user%20repo would give you user and repo scopes.

For example:

https://github.com/login/oauth/authorize?client_id=123abc456defg789hij&scope=repo%20user%20admin:org

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants