简体   繁体   English

如何将XACML 3.0请求与策略存储中存储的策略进行匹配

[英]how to match XACML 3.0 request against policy stored in policy store

Hi I just want to know how can I match XACML 3.0 Request from the PEP against the Policies stored in policy store using PDP. 嗨,我只是想知道如何将来自PEP的XACML 3.0请求与使用PDP存储在策略存储中的策略进行匹配。 How I will evaluate particular request against the multiple policies stored in policy store. 如何根据策略存储中存储的多个策略评估特定请求。

XACML request is matched with the "Target" element of the policies that are stored in PDP policy store. XACML请求与存储在PDP策略存储中的策略的“目标”元素匹配。 Once target element is matched for policies, Those matched policies (applicable policies) are evaluated (rules of the policies) according to the policy order and results are combined according to the policy combining algorithm of the policy store. 一旦为策略匹配了目标元素,就根据策略顺序评估那些匹配的策略(适用策略)(策略规则),并根据策略存储的策略组合算法对结果进行组合。 If PEP wants to know that; 如果PEP想知道这一点; what PEP policies are matched for given XACML request, PEP can send the XACML request with "ReturnPolicyIdList" attribute as "true". 对于给定的XACML请求,要匹配哪些PEP策略,PEP可以使用“ ReturnPolicyIdList”属性为“ true”发送XACML请求。

<Request xmlns="urn:oasis:names:tc:xacml:3.0:core:schema:wd-17" CombinedDecision="false" ReturnPolicyIdList="true">

Then XACML response would returns the matched policies in the XACML response. 然后,XACML响应将在XACML响应中返回匹配的策略。

In addition to Asela's answer, I'd like to add that a "policy store" is implementation-specific. 除了Asela的答案外,我还要补充一点,“策略存储”是特定于实现的。

The way Asela describes it essentially means that the policy store acts a policy set with a combining algorithm and no target. Asela描述它的方式实质上意味着策略存储通过组合算法而不是目标来操作策略集。

Adding my experience of using WSO2 Identity Server as a PDP 添加我将WSO2 Identity Server用作PDP的经验

So you can add multiple policy files in IS. 因此,您可以在IS中添加多个策略文件。 But you have to give ranking to each policy file. 但是您必须对每个策略文件进行排名。

So what i think is, those policies get validated in the order of ranking which we provide and for whichever policy the target element gets matched first get evaluated first. 因此,我认为,这些策略将按照我们提供的排名顺序进行验证,而对于哪种策略,首先匹配目标元素都将首先进行评估。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM