Class: Conjur::Policy::Executor::Deny
- Defined in:
- lib/conjur/policy/executor/deny.rb
Overview
Deny a privilege with a POST request to the deny
url of the resource, with the privilege and role as parameters.
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#action, #initialize, #resource_path, #role_path
Methods included from Logger
Constructor Details
This class inherits a constructor from Conjur::Policy::Executor::Base
Instance Method Details
#execute ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/conjur/policy/executor/deny.rb', line 5 def execute action({ 'method' => 'post', 'path' => "#{resource_path(statement.resource)}?deny", 'parameters' => { "privilege" => statement.privilege, "role" => statement.role.roleid } }) end |