简体   繁体   English

XACML AuthzForce - 评估非 XACML 3.0 格式的请求

[英]XACML AuthzForce - Evaluating a request not in XACML 3.0 format

I want to use the policy decision point (PDP) of AuthzForce to evaluate requests (reference: https://github.com/authzforce/core#java-api ).我想使用 AuthzForce 的策略决策点 (PDP) 来评估请求(参考: https : //github.com/authzforce/core#java-api )。 These requests are not in the XACML 3.0 format, but in the XML format with additional elements which are not part of XACML.这些请求不是 XACML 3.0 格式,而是带有不属于 XACML 一部分的附加元素的 XML 格式。 The requests contain all elements of the XACML 3.0 format and additional ones (like dataSource, purpose, ...).请求包含 XACML 3.0 格式的所有元素和其他元素(如数据源、目的等)。

Is there a way to use the PDP of AuthzForce with requests which are not in the XACML 3.0 format?有没有办法对非 XACML 3.0 格式的请求使用 AuthzForce 的 PDP?

I have an already existing XML format, looking like this (simplified): https://www.codepile.net/pile/zJrq1XeA我有一个已经存在的 XML 格式,看起来像这样(简化): https : //www.codepile.net/pile/zJrq1XeA

Now I want to extend it to also support access control using XACML.现在我想扩展它以支持使用 XACML 的访问控制。 My initial idea was to add the XACML elements to the XML file, but then the question arrises whether I can still evaluate it with eg AuthzForce.我最初的想法是将 XACML 元素添加到 XML 文件中,但随后出现的问题是我是否仍然可以使用例如 AuthzForce 来评估它。 The purposeList would be my PolicySet, the purpose a Policy and under purpose I would include my rules.目的列表将是我的策略集,目的是策略,在目的下我将包括我的规则。

No there isn't.不,没有。 There isn't any XACML engine (be it AuthZForce or another) that can understand anything but XACML.除了 XACML 之外,没有任何 XACML 引擎(无论是 AuthZForce 还是其他引擎)可以理解任何内容。 You have to respect the XACML format so that the PDP can process the request.您必须遵守 XACML 格式,以便 PDP 可以处理请求。

The XML format of the XACML request does allow for arbitrary XML Content. XACML 请求的 XML 格式允许任意 XML 内容。 Additionally, you can add any number of attributes with any value (any format) which can then be processed by an attribute connector (eg an XML parser, a JSON parser).此外,您可以添加任意数量的具有任意值(任意格式)的属性,然后属性连接器(例如 XML 解析器、JSON 解析器)可以处理这些属性。

To further help you, we'd need to see an example of what you have in mind and why you want to use a PDP and yet not respect the XACML standard.为了进一步帮助您,我们需要看一个示例,说明您的想法以及为什么要使用 PDP 而又不遵守 XACML 标准。

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

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