linked_in_database.rb 338 B

1234567891011121314
  1. class LinkedInDatabase < OmniAuth::Strategies::LinkedIn
  2. option :name, 'linkedin'
  3. def initialize(app, *args, &block)
  4. # database lookup
  5. # puts 'LinkedInDatabase -> initialize'
  6. config = Setting.get('auth_linkedin_credentials') || {}
  7. args[0] = config['app_id']
  8. args[1] = config['app_secret']
  9. super
  10. end
  11. end