github_database.rb 284 B

12345678910111213
  1. class GithubDatabase < OmniAuth::Strategies::GitHub
  2. option :name, 'github'
  3. def initialize(app, *args, &block)
  4. # database lookup
  5. config = Setting.get('auth_github_credentials') || {}
  6. args[0] = config['app_id']
  7. args[1] = config['app_secret']
  8. super
  9. end
  10. end