trabajo-afectivo/lib/omniauth/twitter_database.rb

16 lines
358 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 TwitterDatabase < OmniAuth::Strategies::Twitter
option :name, 'twitter'
def initialize(app, *args, &block)
# database lookup
config = Setting.get('auth_twitter_credentials') || {}
args[0] = config['key']
args[1] = config['secret']
2012-11-18 11:04:03 +00:00
super
end
end