Class: Puppet::Network::AuthConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/puppet/network/authconfig.rb

Constant Summary collapse

@@authprovider_class =
nil

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rights = nil) ⇒ AuthConfig

Returns a new instance of AuthConfig.



104
105
106
# File 'lib/puppet/network/authconfig.rb', line 104

def initialize(rights=nil)
  @authprovider = self.class.authprovider_class.new(rights)
end

Class Method Details

.authprovider_classObject



100
101
102
# File 'lib/puppet/network/authconfig.rb', line 100

def self.authprovider_class
  @@authprovider_class || Puppet::Network::DefaultAuthProvider
end

.authprovider_class=(klass) ⇒ Object



96
97
98
# File 'lib/puppet/network/authconfig.rb', line 96

def self.authprovider_class=(klass)
  @@authprovider_class = klass
end

Instance Method Details

#check_authorization(method, path, params) ⇒ Object



108
109
110
# File 'lib/puppet/network/authconfig.rb', line 108

def check_authorization(method, path, params)
  @authprovider.check_authorization(method, path, params)
end