Module: Puppet::Network::Authorization
- Defined in:
- lib/puppet/network/authorization.rb
Constant Summary collapse
- @@authconfigloader_class =
nil
Class Method Summary collapse
Instance Method Summary collapse
- #authconfig ⇒ Object
-
#check_authorization(method, path, params) ⇒ Object
Verify that our client has access.
Class Method Details
.authconfigloader_class=(klass) ⇒ Object
26 27 28 |
# File 'lib/puppet/network/authorization.rb', line 26 def self.authconfigloader_class=(klass) @@authconfigloader_class = klass end |
Instance Method Details
#authconfig ⇒ Object
30 31 32 33 |
# File 'lib/puppet/network/authorization.rb', line 30 def authconfig authconfigloader = @@authconfigloader_class || AuthConfigLoader authconfigloader.authconfig end |
#check_authorization(method, path, params) ⇒ Object
Verify that our client has access.
36 37 38 |
# File 'lib/puppet/network/authorization.rb', line 36 def (method, path, params) authconfig.(method, path, params) end |