Updated for new server.
[java-idp.git] / data / example10.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <AttributeReleasePolicy xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:mace:shibboleth:arp:1.0" xsi:schemaLocation="urn:mace:shibboleth:arp:1.0 shibboleth-arp-1.0.xsd" >
3         <Description>Combining a few Rules that might apply to the same target.</Description>
4         <Rule>
5                 <Target>
6                         <AnyTarget/>
7                 </Target>
8                 <Attribute name="urn:mace:dir:attribute-def:eduPersonAffiliation">
9                         <Value release="permit">member@example.edu</Value>
10                 </Attribute>
11         </Rule>
12         <Rule>
13                 <Target>
14                         <Requester matchFunction="urn:mace:shibboleth:arp:matchFunction:regexMatch">shar[1-9]\.example\.edu</Requester>
15                         <Resource matchFunction="urn:mace:shibboleth:arp:matchFunction:regexMatch">^https?://.+\.example\.edu/.*$</Resource>
16                 </Target>
17                 <Attribute name="urn:mace:dir:attribute-def:eduPersonAffiliation">
18                         <Value release="permit">faculty@example.edu</Value>
19                 </Attribute>
20         </Rule>
21         <Rule>
22                 <Target>
23                         <Requester>shar.example.edu</Requester>
24                         <Resource>http://www.example.edu/example1/</Resource>
25                 </Target>
26                 <Attribute name="urn:mace:dir:attribute-def:eduPersonAffiliation">
27                         <Value release="deny">faculty@example.edu</Value>
28                 </Attribute>
29         </Rule>
30         <Rule>
31                 <Target>
32                         <Requester>shar.example.edu</Requester>
33                         <Resource>http://www.example.edu/example2/</Resource>
34                 </Target>
35                 <Attribute name="urn:mace:dir:attribute-def:eduPersonAffiliation">
36                         <AnyValue release="permit"/>
37                 </Attribute>
38         </Rule>
39 </AttributeReleasePolicy>