tsrein

opencast_event_xacm.xml

Apr 11th, 2022 (edited)
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.55 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  2. <Policy
  3. PolicyId="b65fe020-58e8-42b1-9a25-fde1760c51ed"
  4. Version="2.0"
  5. RuleCombiningAlgId="urn:oasis:names:tc:xacml:1.0:rule-combining-algorithm:permit-overrides"
  6. xmlns="urn:oasis:names:tc:xacml:2.0:policy:schema:os">
  7.     <Target>
  8.         <Resources>
  9.             <Resource>
  10.                 <ResourceMatch MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal">
  11.                     <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">
  12.                         b65fe020-58e8-42b1-9a25-fde1760c51ed
  13.                     </AttributeValue>
  14.                 <ResourceAttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:resource:resource-id" DataType="http://www.w3.org/2001/XMLSchema#string"/>
  15.                 </ResourceMatch>
  16.             </Resource>
  17.         </Resources>
  18.     </Target>
  19.     <Rule RuleId="ROLE_USER_ADMIN_read_Permit" Effect="Permit">
  20.         <Target>
  21.             <Actions>
  22.                 <Action>
  23.                     <ActionMatch MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal">
  24.                         <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">
  25.                             read
  26.                         </AttributeValue>
  27.                             <ActionAttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:action:action-id" DataType "http://www.w3.org/2001/XMLSchema#string"/>
  28.                     </ActionMatch>
  29.                 </Action>
  30.             </Actions>
  31.         </Target>
  32.         <Condition>
  33.             <Apply FunctionId="urn:oasis:names:tc:xacml:1.0:function:string-is-in">
  34.                 <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">
  35.                     ROLE_USER_ADMIN
  36.                 </AttributeValue>
  37.                 <SubjectAttributeDesignator AttributeId="urn:oasis:names:tc:xacml:2.0:subject:role" DataType="http://www.w3.org/2001/XMLSchema#string"/>
  38.             </Apply>
  39.         </Condition>
  40.     </Rule>
  41.     <Rule RuleId="ROLE_USER_ADMIN_write_Permit" Effect="Permit">
  42.         <Target>
  43.             <Actions>
  44.                 <Action>
  45.                     <ActionMatch MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal">
  46.                         <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">
  47.                             write
  48.                         </AttributeValue>
  49.                         <ActionAttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:action:action-id" DataType="http://www.w3.org/2001/XMLSchema#string"/>
  50.                     </ActionMatch>
  51.                 </Action>
  52.             </Actions>
  53.         </Target>
  54.         <Condition>
  55.             <Apply FunctionId="urn:oasis:names:tc:xacml:1.0:function:string-is-in">
  56.                 <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">
  57.                     ROLE_USER_ADMIN
  58.                 </AttributeValue>
  59.             <SubjectAttributeDesignator AttributeId="urn:oasis:names:tc:xacml:2.0:subject:role" DataType="http://www.w3.org/2001/XMLSchema#string"/>
  60.             </Apply>
  61.         </Condition>
  62.     </Rule>
  63.     <Rule RuleId="DenyRule" Effect="Deny"/>
  64. </Policy>
Add Comment
Please, Sign In to add comment