Module: Puppet::Network::RestAuthorization
- Included in:
- HTTP::Handler
- Defined in:
- lib/vendor/puppet/network/rest_authorization.rb
Instance Method Summary collapse
-
#authconfig ⇒ Object
Create our config object if necessary.
-
#check_authorization(indirection, method, key, params) ⇒ Object
Verify that our client has access.
Instance Method Details
#authconfig ⇒ Object
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 (indirection, method, key, params) authconfig.(indirection, method, key, params) end |