Sha256: ee84ea4be18d60a40052b1b1f2c9870b014650d2c81e08b5b3b7a658c9ffcdc8
Contents?: true
Size: 637 Bytes
Versions: 8
Compression:
Stored size: 637 Bytes
Contents
module Conjur::Policy::Executor # Permit a privilege with a POST request to the +permit+ url of the resource, with the privilege # and role as parameters. +grant_option+ is also provided if it is explicitly stated on the Permit # record. class Permit < Base def execute parameters = { "privilege" => statement.privilege, "role" => statement.role.role.roleid } parameters['grant_option'] = statement.role.admin unless statement.role.admin.nil? action({ 'method' => 'post', 'path' => "#{resource_path(statement.resource)}?permit", 'parameters' => parameters }) end end end
Version data entries
8 entries across 8 versions & 1 rubygems