无法导入WSO2的Identity Server 5.1.0内部XACML 3.0策略文件 [英] Cannot import XACML 3,0 policy file inside WSO2 Identity Server 5.1.0

查看:588
本文介绍了无法导入WSO2的Identity Server 5.1.0内部XACML 3.0策略文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到 政策上传失败。无效的权利政策。政策根据XACML模式是无效的消息,每当我在WSO2身份认证服务器上传的政策。我有wso2is-5.1.0版本。我从这个WSO2 教程本XACML策略

的XACML策略是:

<Policy xmlns="urn:oasis:names:tc:xacml:3.0:core:schema:wd-17"  PolicyId="Entitlement_Filter_Sample_Policy" RuleCombiningAlgId="urn:oasis:names:tc:xacml:1.0:rule-combining-algorithm:first-applicable" Version="1.0">
      <Target/>
      <Rule Effect="Permit" RuleId="Rule1">
        <Target>
          <AnyOf>
            <AllOf>
              <Match MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal">
                <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">/Entitlement_Sample_WebApp/protected.jsp</AttributeValue>
                <AttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:resource:resource-id" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="true"></AttributeDesignator>
              </Match>
              <Match MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal">
                <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">GET</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"></AttributeDesignator>
              </Match>
              <Match MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal">
            <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">admin</AttributeValue>
                <AttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:subject:subject-id" Category="urn:oasis:names:tc:xacml:1.0:subject-category:access-subject" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="true"></AttributeDesignator>
              </Match>
            </AllOf>
          </AnyOf>
        </Target>
      </Rule>
    </Policy>

我不能够得到什么是XACML策略的问题。

I am not able to get what is the problem in XACML policy.

推荐答案

您XACML策略是正确的。我可以把它上传到WSO2 IS 5.1.0。
看看附加XACML政策屏幕捕获。你试试'在XML选项写入策略?看看是否你复制粘贴你的政策到XML基地后遇到同样的错误。

Your XACML policy is right. I was able to upload it to WSO2 IS 5.1.0. Have a look at the screen capture of the attached XACML Policy. Did you try the 'Write Policy in XML option'? See whether you experience the same error after copy pasting your policy into the xml base.

这篇关于无法导入WSO2的Identity Server 5.1.0内部XACML 3.0策略文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆