获得';不适用';在WSO2 Identity Server 4.0.0中

获得';不适用';在WSO2 Identity Server 4.0.0中,wso2,wso2esb,wso2carbon,wso2is,xacml3,Wso2,Wso2esb,Wso2carbon,Wso2is,Xacml3,我正在WSO2 IDS 4.0.0中处理此链接 我根据WSO2 IDS 4.0.0服务器中的上述链接开发服务 通过Tryit评估政策 我输入相同的数据并点击测试评估 显示错误“未找到请求的适用策略” 你能解释一下我哪里错了吗 我在这里发送我的XXML策略文件 <Policy xmlns="urn:oasis:names:tc:xacml:3.0:core:schema:wd-17" PolicyId="EchoServicePolicy" RuleCombiningAlgId="urn:

我正在WSO2 IDS 4.0.0中处理此链接

我根据WSO2 IDS 4.0.0服务器中的上述链接开发服务 通过Tryit评估政策

我输入相同的数据并点击测试评估

显示错误“未找到请求的适用策略”

你能解释一下我哪里错了吗

我在这里发送我的XXML策略文件

<Policy xmlns="urn:oasis:names:tc:xacml:3.0:core:schema:wd-17" PolicyId="EchoServicePolicy" RuleCombiningAlgId="urn:oasis:names:tc:xacml:1.0:rule-combining-algorithm:first-applicable" Version="1.0">
   <Target>
      <AnyOf>
         <AllOf>
            <Match MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal">
               <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">testRole</AttributeValue>
               <AttributeDesignator AttributeId="http://wso2.org/claims/role" Category="urn:oasis:names:tc:xacml:1.0:subject-category:access-subject" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="true"/>
            </Match>
         </AllOf>
      </AnyOf>
   </Target>
   <Rule Effect="Permit" RuleId="Rule-1">
      <Target>
         <AnyOf>
            <AllOf>
               <Match MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal">
                  <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">read</AttributeValue>
                  <AttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:action:action-id" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:action" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="true"/>
               </Match>
            </AllOf>
         </AnyOf>
      </Target>
   </Rule>
</Policy>   

测试角色
阅读

能否向我们展示XACML策略和请求。
此错误仅仅意味着IS中的所有活动策略都不适用于接收到的请求

这个“testUser”可能不是“testRole”的角色。您可以转到管理控制台中的配置-->用户和角色并选中此项

您好,Pushpalanks,首先感谢您的重播,我根据上述给定的url配置了XACML策略,无论我以何种方式使用XACML策略更新了我的问题,请您查看一下oncesHI Pushpalanka,谢谢,它正在工作,但从ESB Tryit端它给出了一个错误,如下所示: