Skip to content

Commit

Permalink
Add github config.
Browse files Browse the repository at this point in the history
  • Loading branch information
Trey Terrell committed Jun 18, 2015
1 parent 418dce9 commit ad86a6e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion config/initializers/warden_github_rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
Warden::GitHub::User.new(user["attribs"], user["token"])
end
Warden::GitHub::Rails.setup do |config|
config.add_scope :admin, scope: 'read:org'
config.add_scope :admin,
scope: 'read:org',
client_id: ENV['CVM_GITHUB_CLIENT_ID'] || ENV['GITHUB_CLIENT_ID'],
client_secret: ENV['CVM_GITHUB_CLIENT_SECRET'] || ENV['GITHUB_CLIENT_SECRET'],
redirect_uri: '/'

config.default_scope = :admin

Expand Down

0 comments on commit ad86a6e

Please sign in to comment.