【问题标题】:XACML Policy with Single Rule and Multiple Resources and Actions具有单个规则和多个资源和操作的 XACML 策略
【发布时间】:2014-03-06 04:18:14
【问题描述】:

您好,我正在使用 XACML 3.0 策略,我的情况是:

策略基于多个资源,单个规则将包含多个资源和对应于该特定资源的操作,如下面的场景中所述:

政策:

Resources: firstname lastname email

规则1:

 Action: 

 firstname : {create, read}
 lastname  : {delete, update, create}
 email     : {read} 

并且该用户组允许的角色组是 admin。

规则 1 的作用:

admin

如何实现此策略以及相同的请求格式如何。

【问题讨论】:

    标签: wso2is xacml xacml3 xacml2


    【解决方案1】:

    您可以创建策略,目标为资源和操作的组合,规则 1 在角色为管理员的情况下具有许可效果。

    如果您想同时对多个资源执行操作,那么在这种情况下,您可以选择多个决策配置文件,您可以在其中发送单个请求以在单个响应中获取多个资源的策略决策。

    策略伪代码如下:

    Policy1 Start
    -Target Start
    --(Resource is firstname) and ((action is create) or (action is read))
    OR
    --(Resource is lastname) and ((action is delete) or (action is update) or (action is   create))
    OR
    --(Resource is email) and (action is read)
    -Target End
    
    -Rule1 with effect Permit
    --Role is admin
    -Rule1 End
    
    -Policy1 End
    

    【讨论】:

      猜你喜欢
      • 2023-03-17
      • 2017-03-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-03-16
      相关资源
      最近更新 更多