基于现有 XML 编辑器作为插件实现 XACML 编辑器

发布于 2024-11-15 12:15:58 字数 294 浏览 0 评论 0原文

这是我今天早上的想法:

我现在需要定义很多 XACML 策略(这是一个 XML 应用程序)。 到目前为止,我已经使用了 Eclipse 提供的 XML 编辑器并定义了一些模板以使事情变得更容易。这工作得很好,但有些事情可以改进:

  • 如果内容辅助仅建议在我想要插入模板时实际允许的模板,那就太好了。
  • 另一个巧妙的功能是在以下情况下提供有效属性值的列表:我“制表符”到模板中定义的占位符

这实际上可能吗?我在这里读过,您可以以编程方式定义自己的模板变量,这也许可以解决我遇到的第一个问题。

Here's what I was thinking of this morning:

I need to define a lot of XACML Policies (which is an XML application) at the moment.
So far I've used the XML-Editor supplied with Eclipse and defined some templates to make things easier. This works pretty well but some things could be improved:

  • it would be nice if the content assist would only suggest templates which are actually allowed at the point where I want to insert them
  • another neat feature would be to have a list of valid attribute values when I "tab" to the placedholder defined in the template

Is this actually possible? I've read somewhere here that you can define your own template variables programmatically, which could maybe solve the first problem I have.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

抹茶夏天i‖ 2024-11-22 12:15:58

WSO2 Identity Server 是一个基于 sunxacml 的开源授权引擎。 WSO2 Identity Server 包含一个很好的 XACML UI 策略编辑器,可以轻松地用于创建复杂的 XACML 策略。我认为最好自己尝试一下。用户不想了解太多 XACML 知识来定义这些策略。但您仍然想通过手动过程定义属性值。它还具有 PIP 层,可插入任何属性查找器模块。因此,您可以从任何数据库、LDAP 用户存储、Web 服务等中找到您的属性。此外,还有决策缓存、策略缓存和 PIP 级别属性缓存来提高性能。您可以从 http://wso2.org/ 下载 WSO2 Identity Server 并参考 http://wso2.org/ 的实现源代码="https://svn.wso2.org/repos/wso2/trunk/carbon/components/identity/" rel="nofollow">https://svn.wso2.org/repos/wso2/trunk/carbon/components/identity/

WSO2 Identity Server is a open source entitlement engine which is based on the sunxacml. WSO2 Identity Server contains a nice XACML UI policy editor which can be easily used to create complex XACML policies.. I think it is better to try it by yourself. User dont want to have much knowledge on XACML to define those policies. But still you want to define the attribute values by manual process. Also It has a PIP layer to plug any attribute finder module with it. Therefore you are able to find your attribute from any database, LDAP user store , web services and many more .... Also there are decision caching, policy caching and PIP level attribute caching to improve the performance. You can download the WSO2 Identity Server from http://wso2.org/ and refer the implementation source code from https://svn.wso2.org/repos/wso2/trunk/carbon/components/identity/

始于初秋 2024-11-22 12:15:58

您还可以考虑 Eclipse 的 ALFA 插件,它是一个免费插件。它放弃了 XACML 的 XML 表示法,并使用称为 ALFA(授权公理语言)的伪代码语言。 ALFA 更容易理解、阅读和编写。这是一个示例:

    /**
     * A user can edit a document he/she owns
     */
    policy editDoc{
        target clause actionId=="edit" and resourceType=="document"
        apply firstApplicable
        rule ownersCanEdit{             
            permit
            condition document.owner==user.userId
        }
    }

您可以从 此处

You could also consider the ALFA plugin for Eclipse which is a free plugin. It moves away from the XML notation of XACML and uses a pseudo-code language called ALFA (Axiomatics Language for Authorization). ALFA is easier to understand, read, and write. Here's an example:

    /**
     * A user can edit a document he/she owns
     */
    policy editDoc{
        target clause actionId=="edit" and resourceType=="document"
        apply firstApplicable
        rule ownersCanEdit{             
            permit
            condition document.owner==user.userId
        }
    }

You can download the plugin for free from here.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文