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

- (Object) authority(env)

The authority to use for credential validation.



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

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

- (Aker::Configuration) configuration(env)

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

- (Boolean) interactive?(env)

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