adding callContext to ABAC 2

This commit is contained in:
simonredfern 2025-12-17 22:57:14 +01:00
parent f8aae1cb91
commit b70d0f02dd
2 changed files with 2 additions and 2 deletions

View File

@ -274,7 +274,7 @@ object AbacRuleEngine {
// Compile and execute the rule
compiledFunc <- compileRule(ruleId, rule.ruleCode)
result <- tryo {
compiledFunc(authenticatedUser, authenticatedUserAttributes, authenticatedUserAuthContext, onBehalfOfUserOpt, onBehalfOfUserAttributes, onBehalfOfUserAuthContext, userOpt, userAttributes, bankOpt, bankAttributes, accountOpt, accountAttributes, transactionOpt, transactionAttributes, transactionRequestOpt, transactionRequestAttributes, customerOpt, customerAttributes, callContext)
compiledFunc(authenticatedUser, authenticatedUserAttributes, authenticatedUserAuthContext, onBehalfOfUserOpt, onBehalfOfUserAttributes, onBehalfOfUserAuthContext, userOpt, userAttributes, bankOpt, bankAttributes, accountOpt, accountAttributes, transactionOpt, transactionAttributes, transactionRequestOpt, transactionRequestAttributes, customerOpt, customerAttributes, Some(callContext))
}
} yield result
}

View File

@ -4884,7 +4884,7 @@ trait APIMethods600 {
authenticatedUserId = effectiveAuthenticatedUserId,
onBehalfOfUserId = execJson.on_behalf_of_user_id,
userId = execJson.user_id,
callContext = callContext,
callContext = callContext.getOrElse(cc),
bankId = execJson.bank_id,
accountId = execJson.account_id,
viewId = execJson.view_id,