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

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@6617
Revision 6617, 1.6 KB checked in by pjkersha, 10 years ago (diff)

ndg.security.test.unit.saml.test_soapauthzdecisioninterface: Working Authorisation Service unit test with ndg.security.server.wsgi.authzservice.AuthzServiceMiddleware?. This is called via paste.fixture but it itself is a client to the SAML Attribute Authority running with paster over SSL.

Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<Policy PolicyId="Authorization Service Units Tests" xmlns="urn:ndg:security:authz:1.1: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    </Target>
14    <Target>
15        <URIPattern>^http://localhost/dap/data/test_accessDeniedToSecuredURI$</URIPattern>
16        <Attributes>
17            <Attribute>
18                <Name>urn:siteA:security:authz:1.0:attr:forbidden</Name>
19                <AttributeAuthorityURI>https://localhost:5443/AttributeAuthority/saml</AttributeAuthorityURI>
20            </Attribute>
21            <Attribute>
22                <Name>urn:siteA:security:authz:1.0:attr:keepout</Name>
23                <AttributeAuthorityURI>https://localhost:5443/AttributeAuthority/saml</AttributeAuthorityURI>
24            </Attribute>
25        </Attributes>
26    </Target>
27    <!-- Test inclusion of ampersand -->
28    <Target>
29        <URIPattern>^/test_securedURI[?&amp;]MyQueryParam=100</URIPattern>
30        <Attributes>
31            <Attribute>
32                <Name>urn:siteA:security:authz:1.0:attr:staff</Name>
33                <AttributeAuthorityURI>https://localhost:5443/AttributeAuthority/saml</AttributeAuthorityURI>
34            </Attribute>
35        </Attributes>       
36    </Target>
37</Policy>
Note: See TracBrowser for help on using the repository browser.