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


93
94
95
# File 'lib/puppet/network/authconfig.rb', line 93

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

Class Method Details

.authprovider_classObject


89
90
91
# File 'lib/puppet/network/authconfig.rb', line 89

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

.authprovider_class=(klass) ⇒ Object


85
86
87
# File 'lib/puppet/network/authconfig.rb', line 85

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

Instance Method Details

#check_authorization(method, path, params) ⇒ Object


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

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