From e176db61205f53f509405ecb396b4b40a489b057 Mon Sep 17 00:00:00 2001 From: Arun-KumarH Date: Thu, 14 Mar 2024 16:08:25 +0100 Subject: [PATCH] fix: up roleScoping entity key name --- src/core/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/utils.ts b/src/core/utils.ts index a481cd8..a78e66a 100644 --- a/src/core/utils.ts +++ b/src/core/utils.ts @@ -229,7 +229,7 @@ export async function checkAccessRequest(ctx: ACSClientContext, resource: Resour let result: DecisionResponse | PolicySetRQResponse; try { - result = await accessRequest(subject, resource, action, ctx, { operation, roleScopingEntityURN: cfg?.get('authorization:urns:organization') }); + result = await accessRequest(subject, resource, action, ctx, { operation, roleScopingEntityURN: cfg?.get('authorization:urns:roleScopingEntityURN') }); } catch (err) { return { decision: Response_Decision.DENY, @@ -443,4 +443,4 @@ export const updateScopedRoles = (meta, scopedRoles, urns: Map, } ); return scopedRoles; -}; \ No newline at end of file +};