Sha256: f80bc79182b375e4d65be586ad3d06653c780be175e42aa92ea91a14bed54f5c

Contents?: true

Size: 702 Bytes

Versions: 148

Compression:

Stored size: 702 Bytes

Contents

module Puppet::Network
  module Authorization
    class << self
      # This method is deprecated and will be removed in a future release.
      def authconfigloader_class=(klass)
        @authconfigloader_class = klass
      end

      # Verify something external to puppet is authorizing REST requests, so
      # we don't fail insecurely due to misconfiguration.
      def check_external_authorization(method, path)
        if @authconfigloader_class.nil?
          message = "Forbidden request: #{path} (method #{method})"
          raise Puppet::Network::HTTP::Error::HTTPNotAuthorizedError.new(message, Puppet::Network::HTTP::Issues::FAILED_AUTHORIZATION)
        end
      end
    end
  end
end

Version data entries

148 entries across 148 versions & 1 rubygems

Version Path
puppet-7.34.0 lib/puppet/network/authorization.rb
puppet-7.34.0-x86-mingw32 lib/puppet/network/authorization.rb
puppet-7.34.0-x64-mingw32 lib/puppet/network/authorization.rb
puppet-7.34.0-universal-darwin lib/puppet/network/authorization.rb
puppet-7.33.0 lib/puppet/network/authorization.rb
puppet-7.33.0-x86-mingw32 lib/puppet/network/authorization.rb
puppet-7.33.0-x64-mingw32 lib/puppet/network/authorization.rb
puppet-7.33.0-universal-darwin lib/puppet/network/authorization.rb
puppet-7.32.1 lib/puppet/network/authorization.rb
puppet-7.32.1-x86-mingw32 lib/puppet/network/authorization.rb
puppet-7.32.1-x64-mingw32 lib/puppet/network/authorization.rb
puppet-7.32.1-universal-darwin lib/puppet/network/authorization.rb
puppet-7.31.0 lib/puppet/network/authorization.rb
puppet-7.31.0-x86-mingw32 lib/puppet/network/authorization.rb
puppet-7.31.0-x64-mingw32 lib/puppet/network/authorization.rb
puppet-7.31.0-universal-darwin lib/puppet/network/authorization.rb
puppet-7.30.0 lib/puppet/network/authorization.rb
puppet-7.30.0-x86-mingw32 lib/puppet/network/authorization.rb
puppet-7.30.0-x64-mingw32 lib/puppet/network/authorization.rb
puppet-7.30.0-universal-darwin lib/puppet/network/authorization.rb