Sha256: 3000eaaccfae57afb0b4824a9cd0e8cdc586acbe90fbfb413edf42e11f2b03c2

Contents?: true

Size: 557 Bytes

Versions: 4

Compression:

Stored size: 557 Bytes

Contents

Warden::GitHub::Rails.setup do |config|
  config.add_scope :user,  client_id:     ENV['GITHUB_CLIENT_ID'] || 'foo',
                           client_secret: ENV['GITHUB_CLIENT_SECRET'] || 'bar',
                           scope:         'user'

  config.add_scope :admin, client_id:     ENV['GITHUB_CLIENT_ID'] || 'abc',
                           client_secret: ENV['GITHUB_CLIENT_SECRET'] || 'xyz',
                           redirect_uri:  '/admin/login/callback',
                           scope:         'repo'

  config.add_team :marketing, 456
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
warden-github-rails-1.2.0 spec/rails_app/config/initializers/warden_github_rails.rb
warden-github-rails-1.1.2 spec/rails_app/config/initializers/warden_github_rails.rb
warden-github-rails-1.1.1 spec/rails_app/config/initializers/warden_github_rails.rb
warden-github-rails-1.1.0 spec/rails_app/config/initializers/warden_github_rails.rb