trabajo-afectivo/lib/omniauth/facebook_database.rb

16 lines
369 B
Ruby
Raw Permalink Normal View History

2022-01-01 13:38:12 +00:00
# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
2012-11-18 11:04:03 +00:00
class FacebookDatabase < OmniAuth::Strategies::Facebook
option :name, 'facebook'
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_facebook_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