【发布时间】:2014-04-30 13:38:23
【问题描述】:
我们可以在同一个 XACML 请求中指定两个操作吗?
这个问题来自下面的例子。我想做以下事情:
- 定义如下策略:U 可以使用资源 D 中的 READ 或 WRITE 函数(策略示例可在 this previous post 获得
- 定义如下请求:U 想要使用 READ AND DELETE(或任何其他不允许的操作)
- 得到响应:拒绝
所以这是请求:
<Request xmlns="urn:oasis:names:tc:xacml:3.0:core:schema:wd-17" CombinedDecision="false" ReturnPolicyIdList="false">
<Attributes Category="urn:oasis:names:tc:xacml:3.0:attribute-category:action">
<Attribute AttributeId="urn:oasis:names:tc:xacml:1.0:action:action-id" IncludeInResult="false">
<AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">read</AttributeValue>
<AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">delete</AttributeValue>
</Attribute>
</Attributes>
<Attributes Category="urn:oasis:names:tc:xacml:1.0:subject-category:access-subject">
<Attribute AttributeId="urn:oasis:names:tc:xacml:1.0:subject:subject-id" IncludeInResult="false">
<AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">u</AttributeValue>
</Attribute>
</Attributes>
<Attributes Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource">
<Attribute AttributeId="urn:oasis:names:tc:xacml:1.0:resource:resource-id" IncludeInResult="false">
<AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">d</AttributeValue>
</Attribute>
</Attributes>
</Request>
那么问题又来了,我们可以有这样的 XACML 请求吗(即 U 同时请求读取和删除)?
【问题讨论】:
标签: authorization access-control xacml abac