Skip to content

Commit

Permalink
Merge pull request rubycentral#79 from HaughtCodeworks/github-oauth
Browse files Browse the repository at this point in the history
Reduced github oauth permissions to public data and read email
  • Loading branch information
mghaught authored Aug 8, 2016
2 parents c6354b4 + a868ae4 commit 81865b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/devise.rb
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@
# ==> OmniAuth
# Add a new OmniAuth provider. Check the wiki for more information on setting
# up on your models and hooks.
config.omniauth :github, ENV['GITHUB_KEY'], ENV['GITHUB_SECRET'], scope: 'user,public_repo'
config.omniauth :github, ENV['GITHUB_KEY'], ENV['GITHUB_SECRET'], scope: 'user:email'
config.omniauth :twitter, ENV['TWITTER_KEY'], ENV['TWITTER_SECRET']
config.omniauth :developer unless Rails.env.production?

Expand Down

0 comments on commit 81865b4

Please sign in to comment.