Sha256: c6d89135444935a496a3c50776597e5993403601030eec821030148788ce293d

Contents?: true

Size: 481 Bytes

Versions: 19

Compression:

Stored size: 481 Bytes

Contents

require 'puppet/network/client_request'
require 'puppet/network/rest_authconfig'

module Puppet::Network

  module RestAuthorization


    # Create our config object if necessary. If there's no configuration file
    # we install our defaults
    def authconfig
      @authconfig ||= Puppet::Network::RestAuthConfig.main

      @authconfig
    end

    # Verify that our client has access.
    def check_authorization(request)
      authconfig.allowed?(request)
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
puppet-2.6.18 lib/puppet/network/rest_authorization.rb
puppet-2.6.17 lib/puppet/network/rest_authorization.rb
puppet-2.6.16 lib/puppet/network/rest_authorization.rb
puppet-2.6.15 lib/puppet/network/rest_authorization.rb
puppet-2.6.14 lib/puppet/network/rest_authorization.rb
puppet-2.6.13 lib/puppet/network/rest_authorization.rb
puppet-2.6.12 lib/puppet/network/rest_authorization.rb
puppet-2.6.11 lib/puppet/network/rest_authorization.rb
puppet-2.6.10 lib/puppet/network/rest_authorization.rb
puppet-2.6.9 lib/puppet/network/rest_authorization.rb
puppet-2.6.8 lib/puppet/network/rest_authorization.rb
puppet-2.6.7 lib/puppet/network/rest_authorization.rb
puppet-2.6.6 lib/puppet/network/rest_authorization.rb
puppet-2.6.5 lib/puppet/network/rest_authorization.rb
puppet-2.6.4 lib/puppet/network/rest_authorization.rb
puppet-2.6.3 lib/puppet/network/rest_authorization.rb
puppet-2.6.2 lib/puppet/network/rest_authorization.rb
puppet-2.6.1 lib/puppet/network/rest_authorization.rb
puppet-2.6.0 lib/puppet/network/rest_authorization.rb