Class: IntegrationPal::ApplicationController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/integration_pal/application_controller.rb

Instance Method Summary collapse

Instance Method Details

#require_userObject



10
11
12
13
14
# File 'app/controllers/integration_pal/application_controller.rb', line 10

def require_user
  # pretend to be logged in; you can still go directly to /login if you want to test the SAML flow
  session[:saml_username] ||= ENV['USER'] if Rails.env.in?(%w(development test))
  redirect_to  unless session[:saml_username]
end

#skip_authentication?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'app/controllers/integration_pal/application_controller.rb', line 6

def skip_authentication?
  return false
end