Module: Aker::Rack::EnvironmentHelper
- Included in:
- Modes::Base, Authenticate, ConfigurationHelper, Failure, RequestExt, SessionTimer
- Defined in:
- lib/aker/rack/environment_helper.rb
Overview
Methods used by Rack middleware for reading Aker data out of the Rack environment.
Instance Method Summary collapse
-
#authority(env) ⇒ Object
The authority to use for credential validation.
-
#configuration(env) ⇒ Aker::Configuration
Returns the Configuration instance for the current request.
-
#interactive?(env) ⇒ Boolean
Whether the current request is interactive.
Instance Method Details
#authority(env) ⇒ Object
The authority to use for credential validation.
30 31 32 |
# File 'lib/aker/rack/environment_helper.rb', line 30 def (env) env['aker.authority'] end |
#configuration(env) ⇒ Aker::Configuration
Returns the Configuration instance for the current request.
12 13 14 |
# File 'lib/aker/rack/environment_helper.rb', line 12 def configuration(env) env['aker.configuration'] end |
#interactive?(env) ⇒ Boolean
Whether the current request is interactive.
22 23 24 |
# File 'lib/aker/rack/environment_helper.rb', line 22 def interactive?(env) env['aker.interactive'] end |