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 Oauth scope #182

Open
SimonLab opened this issue Mar 2, 2022 · 1 comment
Open

Github Oauth scope #182

SimonLab opened this issue Mar 2, 2022 · 1 comment
Labels
enhancement New feature or enhancement of existing functionality

Comments

@SimonLab
Copy link
Member

SimonLab commented Mar 2, 2022

Currently the scope used for Github oauth is defined manually:

oauth_github_url = ElixirAuthGithub.login_url(%{scopes: ["user:email"], state: referer})

However with our Labels application we want to allow users to login with Github and to be able to add/remove labels from repositories. This means that we need a way for the auth app to define which scopes to allow for the applications.

List of Github scopes: https://docs.github.com/en/developers/apps/building-oauth-apps/scopes-for-oauth-apps

@SimonLab SimonLab added the enhancement New feature or enhancement of existing functionality label Mar 2, 2022
@nelsonic
Copy link
Member

nelsonic commented Mar 2, 2022

@SimonLab if we want to allow Apps to define their OAuth Scopes dynamically ... this might end up being a bit more work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or enhancement of existing functionality
Projects
None yet
Development

No branches or pull requests

2 participants