1 | Integration Tests securing of a pyDAP service |
---|
2 | ============================================= |
---|
3 | pyDAP is an example data application service that can be secured with NDG |
---|
4 | Security. pyDAP implements the OPeNDAP protocol. To install pyDAP: |
---|
5 | |
---|
6 | $ sudo easy_install pydap |
---|
7 | |
---|
8 | pyDAP requires the numerical python package numpy. This may require |
---|
9 | installation as a separate step: |
---|
10 | |
---|
11 | $ sudo easy_install numpy |
---|
12 | |
---|
13 | Plugins enable the handling of different data types. For NetCDF data, |
---|
14 | |
---|
15 | $ sudo easy_install pydap.handlers.netcdf |
---|
16 | $ sudo easy_install pydap.responses.netcdf |
---|
17 | |
---|
18 | To run, |
---|
19 | |
---|
20 | $ paster serve server.ini |
---|
21 | |
---|
22 | ...and in another terminal run the security services application from the |
---|
23 | authz integration test: |
---|
24 | |
---|
25 | $ python ../authz/securityservicesapp.py |
---|
26 | |
---|
27 | Launch a browser and go to http://localhost:8001. This displays a page with a |
---|
28 | list of data files as included in the ./data directory. The default with this |
---|
29 | installation is a sample comma separated variable format file. Put example |
---|
30 | NetCDF files in this directory in order to test NetCDF access capabilities. |
---|
31 | |
---|
32 | The OpenID login will be triggered if a link such as the sample.csv, requires |
---|
33 | authentication. Select go with the default URL set of, |
---|
34 | "http://localhost:7443/openid". When prompted for a username and password, |
---|
35 | enter pjkersha/testpassword respectively. |
---|
36 | |
---|
37 | The links are secured with the policy file, authz/policy.xml. This has |
---|
38 | target entries corresponding to URI patterns to secure. Add new targets |
---|
39 | for any given dataset or URI pattern needing to be secured. |
---|
40 | |
---|
41 | User attributes are determined by the Attribute Authority configuration set in |
---|
42 | ndg.security.test.config.attributeauthority.sitea.siteAUserRoles |
---|
43 | |
---|
44 | P J Kershaw 19/05/09 |
---|