Sha256: 343e97233bef35dfa7de3800223fb622cfc373e49f066764d25515e3ba2d8643

Contents?: true

Size: 420 Bytes

Versions: 8

Compression:

Stored size: 420 Bytes

Contents

module Conjur::Policy::Executor
  # Deny a privilege with a POST request to the +deny+ url of the resource, with the privilege
  # and role as parameters.
  class Deny < Base
    def execute
      action({
        'method' => 'post',
        'path' => "#{resource_path(statement.resource)}?deny",
        'parameters' => { "privilege" => statement.privilege, "role" => statement.role.roleid }
      })
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
conjur-asset-policy-0.13.0 lib/conjur/policy/executor/deny.rb
conjur-asset-policy-0.12.0 lib/conjur/policy/executor/deny.rb
conjur-asset-policy-0.11.0 lib/conjur/policy/executor/deny.rb
conjur-asset-policy-0.8.3 lib/conjur/policy/executor/deny.rb
conjur-asset-policy-0.8.2 lib/conjur/policy/executor/deny.rb
conjur-asset-policy-0.8.1 lib/conjur/policy/executor/deny.rb
conjur-asset-policy-0.8.0 lib/conjur/policy/executor/deny.rb
conjur-asset-policy-0.7.1 lib/conjur/policy/executor/deny.rb