Sha256: 9f2b198a3e6c1fd485128ed48989d5838a6a4310ef85bcba1b6871c940dbe156
Contents?: true
Size: 652 Bytes
Versions: 5
Compression:
Stored size: 652 Bytes
Contents
module Conjur::DSL2::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(default_account) } 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
5 entries across 5 versions & 1 rubygems