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

Instance Method Details

#authority(env) ⇒ Object

The authority to use for credential validation.

Returns:

  • (Object)


30
31
32
# File 'lib/aker/rack/environment_helper.rb', line 30

def authority(env)
  env['aker.authority']
end

#configuration(env) ⇒ Aker::Configuration

Returns the Configuration instance for the current request.

Returns:



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.

Returns:

  • (Boolean)

See Also:



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

def interactive?(env)
  env['aker.interactive']
end