Changeset 5293 for TI12-security


Ignore:
Timestamp:
15/05/09 15:24:57 (11 years ago)
Author:
pjkersha
Message:

Integrated security with pyDAP 3.0. Test configuration is in ndg.security.test.integration.pydap

Location:
TI12-security/trunk/python/ndg.security.test/ndg/security/test/integration/dap
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/python/ndg.security.test/ndg/security/test/integration/dap/authz/policy.xml

    r5280 r5293  
    1515    </Target> 
    1616    <Target> 
    17         <URIPattern>^/sresa1b_ncar_ccsm3_0_run1_200001.nc.das$</URIPattern> 
     17        <URIPattern>^/sresa1b_ncar_ccsm3_0_run1_200001.*$</URIPattern> 
    1818        <Attributes> 
    19             <Attribute>urn:siteA:security:authz:1.0:attr:forbidden</Attribute> 
     19            <Attribute>urn:siteA:security:authz:1.0:attr:staff</Attribute> 
    2020            <Attribute>urn:siteA:security:authz:1.0:attr:keepout</Attribute> 
    2121        </Attributes> 
     
    2727    </Target> 
    2828</Policy> 
     29 
  • TI12-security/trunk/python/ndg.security.test/ndg/security/test/integration/dap/server.ini

    r5280 r5293  
    11# 
    2 # pyDAP Test config 
     2# NDG Security pyDAP version 3.0 Test configuration 
    33# 
    4 # The %(here)s variable will be replaced with the parent directory of this file 
     4# NERC DataGrid 
     5# 
     6# Author: P J Kershaw 
     7# 
     8# Date: 15/05/09 
     9# 
     10# Copyright: STFC 2009 
     11# 
     12# Licence: BSD - see top level directory for details 
     13# 
     14# The %(here)s variable will be replaced with the parent directory of this  
     15# file 
    516# 
    617[server:main] 
     
    819# Change to 0.0.0.0 to make public 
    920host = 127.0.0.1 
    10 port = 8080 
     21port = 8001 
    1122 
    12 [app:static] 
    13 use = egg:Paste#static 
    14 document_root = %(here)s/data 
     23# Composite to enable templates to pick up static content 
     24[composit:cascade] 
     25use = egg:Paste#cascade 
     26app1 = staticLayout 
     27app2 = pydap 
     28catch = 404 
    1529 
    16 [app:pydap] 
    17 use = egg:dap 
    18 name = My-Server 
    19 root = %(here)s/data 
    20 verbose = 0 
    21 template = %(here)s/template 
    22  
     30# Layout folder contains stylesheet and graphics for templates 
    2331[app:staticLayout] 
    2432use = egg:Paste#static 
    2533document_root = %(here)s/layout 
    2634 
    27 [filter-app:dapApp] 
    28 use = egg:Paste#httpexceptions 
    29 next = cascade 
     35# pyDAP Application 
     36[app:pydap] 
     37use = egg:pydap#server 
     38root = %(here)s/data 
     39templates = %(here)s/template 
     40x-wsgiorg.throw_errors = 0 
    3041 
    31 # Composite for OpenID Provider to enable settings for picking up static  
    32 # content 
    33 [composit:cascade] 
    34 use = egg:Paste#cascade 
    35 app1 = static 
    36 app2 = staticLayout 
    37 app3 = pydap 
    38 catch = 404 
    39  
     42# Pipeline to with security filters to protect the pyDAP application 
    4043[pipeline:main] 
    41 pipeline = AuthenticationFilter AuthorizationFilter dapApp 
     44pipeline = AuthenticationFilter AuthorizationFilter cascade 
    4245 
    4346[filter:AuthenticationFilter] 
Note: See TracChangeset for help on using the changeset viewer.