Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Commit

Permalink
devise: use a more fine-grained scope for Github
Browse files Browse the repository at this point in the history
We didn't need `user`, but just `read:user` and `user:email`.

Fixes #1790

Signed-off-by: Miquel Sabaté Solà <[email protected]>
  • Loading branch information
mssola committed Apr 27, 2018
1 parent c13353c commit 49c6aef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/devise/oauth.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def open_id_fetch_options
end

def github_fetch_options
{ scope: "user,read:org" }
{ scope: "read:user,user:email,read:org" }
end

def gitlab_fetch_options
Expand Down

0 comments on commit 49c6aef

Please sign in to comment.