Class: IntegrationPal::ApplicationController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- IntegrationPal::ApplicationController
- Defined in:
- app/controllers/integration_pal/application_controller.rb
Direct Known Subclasses
ApiController, JobsController, SamlController, TasksController, WorkersController
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 saml2_login_url unless session[:saml_username] end |