duke-libraries/ddr-models

View on GitHub
lib/ddr/auth/failure_app.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Ddr
  module Auth
    class FailureApp < Devise::FailureApp

      def respond
        if scope == :user && Ddr::Auth.require_shib_user_authn
          store_location!
          redirect_to user_omniauth_authorize_path(:shibboleth)
        else
          super
        end
      end

    end
  end
end