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

#authenticate!Object



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

def authenticate!
  # 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