twitter_database.rb 375 B

123456789101112131415
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class OmniAuth::Strategies::TwitterDatabase < OmniAuth::Strategies::Twitter
  3. option :name, 'twitter'
  4. def initialize(app, *args, &)
  5. # database lookup
  6. config = Setting.get('auth_twitter_credentials') || {}
  7. args[0] = config['key']
  8. args[1] = config['secret']
  9. super
  10. end
  11. end