Slide 73
Slide 73 text
module OmniAuth
module Strategies
autoload :VulcanService, Rails.root.join('lib', 'strategies',
'vulcan_service')
autoload :KlingonManager, Rails.root.join('lib', 'strategies',
'klingon_manager')
autoload :Bieber, Rails.root.join('lib', 'strategies', 'beiber')
end
end
Rails.application.config.middleware.use OmniAuth::Builder do
provider :Vulcan, "#{APP_CONFIG['vulcan_url']}/login"
provider :KlingonService, "#{APP_CONFIG['klingon_service_url']}/login"
provider :BeiberManager, "#{APP_CONFIG['beiber_manager_url']}/login"
provider :developer
end