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