require 'doorkeeper_hub/routes' require 'warden' require 'omniauth' require 'omniauth-saml' module DoorkeeperHub class Engine < Rails::Engine config.app_middleware.use Warden::Manager do |manager| manager.intercept_401 = false end end end