source: TI12-security/trunk/NDGSecurity/python/ndg_security_test/ndg/security/test/unit/wsgi/saml/policy-1.1.xml @ 6623

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/NDGSecurity/python/ndg_security_test/ndg/security/test/unit/wsgi/saml/policy-1.1.xml@6623
Revision 6623, 1.7 KB checked in by pjkersha, 10 years ago (diff)
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<Policy PolicyId="Authorization Service Units Tests" xmlns="urn:ndg:security:authz:1.2:policy">
3    <Description>Restrict access for Authorization integration tests</Description>
4   
5    <Target>
6        <URIPattern>^http://localhost/dap/data/.*</URIPattern>
7        <Attributes>
8            <Attribute>
9                <Name>urn:siteA:security:authz:1.0:attr:staff</Name>
10                <AttributeAuthorityURI>https://localhost:5443/AttributeAuthority/saml</AttributeAuthorityURI>
11            </Attribute>
12        </Attributes> 
13        <Actions>
14            <Action>
15               
16            </Action>
17        </Actions>
18    </Target>
19    <Target>
20        <URIPattern>^http://localhost/dap/data/test_accessDeniedToSecuredURI$</URIPattern>
21        <Attributes>
22            <Attribute>
23                <Name>urn:siteA:security:authz:1.0:attr:forbidden</Name>
24                <AttributeAuthorityURI>https://localhost:5443/AttributeAuthority/saml</AttributeAuthorityURI>
25            </Attribute>
26            <Attribute>
27                <Name>urn:siteA:security:authz:1.0:attr:keepout</Name>
28                <AttributeAuthorityURI>https://localhost:5443/AttributeAuthority/saml</AttributeAuthorityURI>
29            </Attribute>
30        </Attributes>
31    </Target>
32    <!-- Test inclusion of ampersand -->
33    <Target>
34        <URIPattern>^/test_securedURI[?&amp;]MyQueryParam=100</URIPattern>
35        <Attributes>
36            <Attribute>
37                <Name>urn:siteA:security:authz:1.0:attr:staff</Name>
38                <AttributeAuthorityURI>https://localhost:5443/AttributeAuthority/saml</AttributeAuthorityURI>
39            </Attribute>
40        </Attributes>       
41    </Target>
42</Policy>
Note: See TracBrowser for help on using the repository browser.