Module: Aker

Defined in:
lib/aker.rb,
lib/aker/cas.rb,
lib/aker/ldap.rb,
lib/aker/form.rb,
lib/aker/user.rb,
lib/aker/modes.rb,
lib/aker/group.rb,
lib/aker/version.rb,
lib/aker/form/mode.rb,
lib/aker/modes/base.rb,
lib/aker/authorities.rb,
lib/aker/deprecation.rb,
lib/aker/rack/logout.rb,
lib/aker/configuration.rb,
lib/aker/modes/support.rb,
lib/aker/cas/proxy_mode.rb,
lib/aker/modes/http_basic.rb,
lib/aker/cas/service_mode.rb,
lib/aker/group_membership.rb,
lib/aker/central_parameters.rb,
lib/aker/modes/support/rfc_2617.rb

Defined Under Namespace

Modules: Authorities, Cas, ConfiguratorLanguage, Deprecation, Form, Ldap, Modes, Rack, Test Classes: CentralParameters, Configuration, Group, GroupMembership, GroupMemberships, User

Constant Summary

VERSION =
"3.0.0.pre"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.authorityObject?

Returns a single authentication/authorization entry point conforming to the authority protocol as defined by Aker::Authorities::Composite. By default, it is automatically derived from the configuration.



25
26
27
# File 'lib/aker.rb', line 25

def authority
  @authority || (@configuration && @configuration.composite_authority)
end

.configurationConfiguration?



17
18
19
# File 'lib/aker.rb', line 17

def configuration
  @configuration
end

Class Method Details

.configure(&block) ⇒ Configuration

Create/update the global aker configuration. Accepts a block containing expressions in the Configuration DSL.

See Also:



33
34
35
36
# File 'lib/aker.rb', line 33

def configure(&block)
  @configuration ||= Aker::Configuration.new
  @configuration.enhance(&block)
end