2022-01-01 13:38:12 +00:00
|
|
|
# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
|
2021-06-01 12:20:20 +00:00
|
|
|
|
2012-11-18 11:04:03 +00:00
|
|
|
class TwitterDatabase < OmniAuth::Strategies::Twitter
|
|
|
|
option :name, 'twitter'
|
|
|
|
|
|
|
|
def initialize(app, *args, &block)
|
|
|
|
|
|
|
|
# database lookup
|
2015-05-07 20:49:15 +00:00
|
|
|
config = Setting.get('auth_twitter_credentials') || {}
|
2015-05-04 14:42:00 +00:00
|
|
|
args[0] = config['key']
|
|
|
|
args[1] = config['secret']
|
2012-11-18 11:04:03 +00:00
|
|
|
super
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|