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