Class: IntegrationPal::ApplicationController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- IntegrationPal::ApplicationController
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!
session[:saml_username] ||= ENV['USER'] if Rails.env.in?(%w(development test))
redirect_to saml2_login_url unless logged_in?
end
|
#logged_in? ⇒ Boolean
12
13
14
|
# File 'app/controllers/integration_pal/application_controller.rb', line 12
def logged_in?
session[:saml_username].present?
end
|