Module: Puppet::Network::RestAuthorization

Included in:
HTTP::Handler
Defined in:
lib/vendor/puppet/network/rest_authorization.rb

Instance Method Summary collapse

Instance Method Details

#authconfigObject

Create our config object if necessary. If there’s no configuration file we install our defaults



11
12
13
14
15
# File 'lib/vendor/puppet/network/rest_authorization.rb', line 11

def authconfig
  @authconfig ||= Puppet::Network::RestAuthConfig.main

  @authconfig
end

#check_authorization(indirection, method, key, params) ⇒ Object

Verify that our client has access.



18
19
20
# File 'lib/vendor/puppet/network/rest_authorization.rb', line 18

def check_authorization(indirection, method, key, params)
  authconfig.check_authorization(indirection, method, key, params)
end