require Rails.root.join('lib', 'yammer-strategy')
require Rails.root.join('lib', 'yammer-staging-strategy')
OmniAuth.config.on_failure = SessionsController.action(:oauth_failure)

Rails.application.config.middleware.use OmniAuth::Builder do
  provider :yammer, ENV['CONSUMER_KEY'], ENV['CONSUMER_SECRET']
  provider :yammer_staging, ENV['STAGING_CONSUMER_KEY'], ENV['STAGING_CONSUMER_SECRET']
end

require Rails.root.join('lib', 'yammer-strategy')
require Rails.root.join('lib', 'yammer-staging-strategy')
OmniAuth.config.on_failure = SessionsController.action(:oauth_failure)
OmniAuth.config.logger = Rails.logger

Rails.application.config.middleware.use OmniAuth::Builder do
  provider :yammer, ENV['CONSUMER_KEY'], ENV['CONSUMER_SECRET']
  provider :yammer_staging, ENV['STAGING_CONSUMER_KEY'], ENV['STAGING_CONSUMER_SECRET']
end

Hide authentication error messages during tests
Hide authentication error messages during tests
