Sha256: cbbafaa4f738b233705b9e427b327f619900f7da3e04489105d9c4fadfd56d93

Contents?: true

Size: 589 Bytes

Versions: 6

Compression:

Stored size: 589 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
            unless defined? @authconfig
                @authconfig = Puppet::Network::RestAuthConfig.main
            end

            @authconfig
        end

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
puppet-0.25.5 lib/puppet/network/rest_authorization.rb
puppet-0.25.4 lib/puppet/network/rest_authorization.rb
puppet-0.25.3 lib/puppet/network/rest_authorization.rb
puppet-0.25.2 lib/puppet/network/rest_authorization.rb
puppet-0.25.1 lib/puppet/network/rest_authorization.rb
puppet-0.25.0 lib/puppet/network/rest_authorization.rb