Module: ZeroAuth

Defined in:
lib/zero_auth.rb,
lib/zero_auth/utils.rb,
lib/zero_auth/config.rb,
lib/zero_auth/version.rb,
lib/zero_auth/password.rb,
lib/zero_auth/model/password.rb

Overview

Namespace for the ZeroAuth library

Defined Under Namespace

Modules: Model Classes: Config, Password, Unauthorized, Utils

Constant Summary collapse

VERSION =
"0.0.3"

Class Method Summary collapse

Class Method Details

.configZeroAuth::Config

The current Config object for the thread.

Returns:



19
20
21
# File 'lib/zero_auth.rb', line 19

def self.config
  Thread.current[:zero_auth_config] ||= Config.new
end

.configure {|config| ... } ⇒ Object

Enables configuration of the ZeroAuth library.

Yield Parameters:



27
28
29
# File 'lib/zero_auth.rb', line 27

def self.configure
  yield config
end