Skip to content

Commit

Permalink
fix: removed redundant target scoping entity and target scoping insta…
Browse files Browse the repository at this point in the history
…nce from ACS request message
  • Loading branch information
Arun-KumarH committed Apr 12, 2024
1 parent f06da83 commit da1b32e
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions test/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,6 @@ export const buildRequest = (opts: RequestOpts): Request => {
}
]);

if (opts.roleScopingEntity && opts.roleScopingInstance) {
subjects = subjects.concat([
{
id: 'urn:restorecommerce:acs:names:roleScopingEntity',
value: opts.roleScopingEntity,
attributes: [{
id: 'urn:restorecommerce:acs:names:roleScopingInstance',
value: opts.targetScopingInstance ? opts.targetScopingInstance : opts.roleScopingInstance,
attributes: []
}]
}
]);
}

if (opts.actionType === 'urn:restorecommerce:acs:names:action:execute') {
if (typeof opts.resourceType === 'string') {
resources = resources.concat([
Expand Down

0 comments on commit da1b32e

Please sign in to comment.