microsoft_office365_database.rb 334 B

12345678910111213
  1. class MicrosoftOffice365Database < OmniAuth::Strategies::MicrosoftOffice365
  2. option :name, 'microsoft_office365'
  3. def initialize(app, *args, &block)
  4. # database lookup
  5. config = Setting.get('auth_microsoft_office365_credentials') || {}
  6. args[0] = config['app_id']
  7. args[1] = config['app_secret']
  8. super
  9. end
  10. end