【发布时间】:2014-09-25 15:47:28
【问题描述】:
我有一个XACML 请求,其中包含两个(resource:type) 属性和一个(resource:id) 属性:
<Request xmlns="urn:oasis:names:tc:xacml:2.0:context:schema:os" >
<Resource>
<Attribute AttributeId="resource:type" DataType="http://www.w3.org/2001/XMLSchema#string">
<AttributeValue>status</AttributeValue>
</Attribute>
<Attribute AttributeId="resource:type" DataType="http://www.w3.org/2001/XMLSchema#string">
<AttributeValue>pressure</AttributeValue>
</Attribute>
<Attribute AttributeId="urn:oasis:names:tc:xacml:1.0:resource:resource-id" DataType="http://www.w3.org/2001/XMLSchema#string">
<AttributeValue>status:of:nariman</AttributeValue>
</Attribute>
</Resource>
<Subject>
<Attribute AttributeId="urn:oasis:names:tc:xacml:1.0:subject:subject-id" DataType="http://www.w3.org/2001/XMLSchema#string">
<AttributeValue>1111</AttributeValue>
</Attribute>
</Subject>
<Action>
<Attribute AttributeId="urn:oasis:names:tc:xacml:1.0:action:action-id">
<AttributeValue>view</AttributeValue>
</Attribute>
</Action>
</Request>
我想用三个对应于上述每个资源属性的义务表达式来定义一个义务。我如何使用ALFA 做到这一点?
【问题讨论】:
-
只是一个澄清。我想稍后通过读取每个赋值表达式中的值并执行进一步的逻辑(在 PEP 级别编写)来处理我的代码义务。
标签: authorization access-control xacml xacml3 alfa