Module: Aker::Rack::ConfigurationHelper

Includes:
EnvironmentHelper
Included in:
Cas::Middleware::LogoutResponder, Form::Middleware::LoginRenderer, Form::Middleware::LoginResponder, Form::Middleware::LogoutResponder, DefaultLogoutResponder
Defined in:
lib/aker/rack/configuration_helper.rb

Overview

Methods used by Rack middleware for reading configuration data out of the Rack environment.

Instance Method Summary (collapse)

Methods included from EnvironmentHelper

#authority, #configuration, #interactive?

Instance Method Details

- (Boolean) using_custom_login_page?(env)

Whether a custom login page will be provided by the application.

Returns:

  • (Boolean)


14
15
16
# File 'lib/aker/rack/configuration_helper.rb', line 14

def (env)
  configuration(env).parameters_for(:rack)[:use_custom_login_page]
end

- (Boolean) using_custom_logout_page?(env)

Whether a custom logout page is in use.

Returns:

  • (Boolean)


22
23
24
# File 'lib/aker/rack/configuration_helper.rb', line 22

def using_custom_logout_page?(env)
  configuration(env).parameters_for(:rack)[:use_custom_logout_page]
end