1

我在以下位置使用示例策略:

https://svn.wso2.org/repos/wso2/trunk/commons/balana/modules/balana-core/src/test/resources/basic/3/policies/TestPolicy_0001.xml

和样品请求:

https://svn.wso2.org/repos/wso2/trunk/commons/balana/modules/balana-core/src/test/resources/basic/3/requests/request_0001_02.xml

并从 WSO2 身份服务器获得不确定的响应,说明“找不到 AttributeDesignator 属性”

<Response xmlns="urn:oasis:names:tc:xacml:3.0:core:schema:wd-17">
<Result>
<Decision>Indeterminate</Decision>
<Status>
<StatusCode Value="urn:oasis:names:tc:xacml:1.0:status:missing-attribute"/>
<StatusMessage>Couldn't find AttributeDesignator attribute</StatusMessage>
<StatusDetail>
<MissingAttributeDetail AttributeId="http://kmarket.com/id/role" DataType="http://www.w3.org/2001/XMLSchema#string" Category="urn:oasis:names:tc:xacml:1.0:subject-category:access-subject" ></MissingAttributeDetail>
</StatusDetail>
</Status>
</Result>
</Response>

不知道我错过了什么

4

1 回答 1

2

如果在请求中发送 'urn:oasis:names:tc:xacml:1.0:subject-category:access-subject' 属性,这将得到解决。您可以在我的博客http://pushpalankajaya.blogspot.com/2013/06/working-with-xacml-30-policies-for-fine中获得一组包含示例请求和响应的策略作为系列。 html

于 2013-08-01T05:42:43.240 回答