Module: OctopusAuth

Defined in:
lib/octopus_auth.rb,
lib/octopus_auth/issue.rb,
lib/octopus_auth/errors.rb,
lib/octopus_auth/revoke.rb,
lib/octopus_auth/queries.rb,
lib/octopus_auth/version.rb,
lib/octopus_auth/decorators.rb,
lib/octopus_auth/queries/get.rb,
lib/octopus_auth/authenticator.rb,
lib/octopus_auth/configuration.rb,
lib/octopus_auth/token_generator.rb,
lib/octopus_auth/queries/by_scope.rb,
lib/octopus_auth/decorators/default.rb,
lib/octopus_auth/access_scope_validator.rb,
lib/octopus_auth/errors/token_not_found_error.rb

Defined Under Namespace

Modules: Decorators, Errors, Queries Classes: AccessScopeValidator, Authenticator, Configuration, Issue, Revoke, TokenGenerator

Constant Summary collapse

VERSION =
"0.1.3"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



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

def configuration
  @configuration
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



20
21
22
23
# File 'lib/octopus_auth.rb', line 20

def self.configure
  self.configuration ||= OctopusAuth::Configuration.new
  yield(configuration)
end

.resetObject



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

def self.reset
  self.configuration = OctopusAuth::Configuration.new
end