source: TI12-security/trunk/NDGSecurity/python/ndg_security_test/ndg/security/test/integration/dap/README @ 7077

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/NDGSecurity/python/ndg_security_test/ndg/security/test/integration/dap/README@7077
Revision 7077, 1.6 KB checked in by pjkersha, 9 years ago (diff)
  • Property svn:keywords set to Id
Line 
1Integration Tests securing of a pyDAP service
2=============================================
3pyDAP is an example data application service that can be secured with NDG
4Security.  pyDAP implements the OPeNDAP protocol.  To install pyDAP:
5
6$ sudo easy_install pydap
7
8pyDAP requires the numerical python package numpy.  This may require
9installation as a separate step:
10
11$ sudo easy_install numpy
12
13Plugins 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
18To run,
19
20$ paster serve server.ini
21
22...and in another terminal run the security services application from the
23authz integration test:
24
25$ python ../authz/securityservicesapp.py
26
27Launch a browser and go to http://localhost:8001.  This displays a page with a
28list of data files as included in the ./data directory.  The default with this
29installation is a sample comma separated variable format file.  Put example
30NetCDF files in this directory in order to test NetCDF access capabilities.
31
32The OpenID login will be triggered if a link such as the sample.csv, requires
33authentication.  Select go with the default URL set of,
34"http://localhost:7443/openid".  When prompted for a username and password,
35enter pjkersha/testpassword respectively.
36
37The links are secured with the policy file, authz/policy.xml.  This has
38target entries corresponding to URI patterns to secure.  Add new targets
39for any given dataset or URI pattern needing to be secured.
40
41User attributes are determined by the Attribute Authority configuration set in
42ndg.security.test.config.attributeauthority.sitea.siteAUserRoles
43
44P J Kershaw 19/05/09
Note: See TracBrowser for help on using the repository browser.