mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 13:07:02 +00:00
adding callContext to ABAC 2
This commit is contained in:
parent
f8aae1cb91
commit
b70d0f02dd
@ -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
|
||||
}
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user