trabajo-afectivo/lib/omniauth/linked_in_database.rb

16 lines
368 B
Ruby
Raw Permalink Normal View History

# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
2012-11-18 11:04:03 +00:00
class LinkedInDatabase < OmniAuth::Strategies::LinkedIn
option :name, 'linkedin'
2012-11-18 11:04:03 +00:00
def initialize(app, *args, &block)
2012-11-18 11:04:03 +00:00
# database lookup
config = Setting.get('auth_linkedin_credentials') || {}
2012-11-18 11:04:03 +00:00
args[0] = config['app_id']
args[1] = config['app_secret']
super
end
2012-11-18 11:04:03 +00:00
end