auth icon indicating copy to clipboard operation
auth copied to clipboard

Github Oauth scope

Open SimonLab opened this issue 3 years ago • 1 comments

Currently the scope used for Github oauth is defined manually: https://github.com/dwyl/auth/blob/e1216674c478d5fcb983f0c2f919829a50db1ca2/lib/auth_web/controllers/auth_controller.ex#L65

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 avatar Mar 02 '22 11:03 SimonLab

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

nelsonic avatar Mar 02 '22 16:03 nelsonic