Ignore:
Timestamp:
27/11/09 15:52:29 (10 years ago)
Author:
pjkersha
Message:

Working authz lite integration tests with integrated SAML Attribute Authority interface to authz middleware: the old NDG Attribute Authority SOAP/WSDL interface is completely removed as a dependency.

  • major fixes to ndg.security.common.credentialwallet NDGCredentialWallet and SAMLCredentialWallet for slots and pickling capability needed for beaker.session. NDGCredentialWallet is kept for the moment for backwards compatibility.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/python/ndg_security_test/ndg/security/test/integration/authz_lite/securityservicesapp.py

    r5779 r6063  
    1212import os 
    1313from os.path import dirname, abspath, join 
     14       
     15from OpenSSL import SSL 
    1416 
     17from ndg.security.test.unit import BaseTestCase 
    1518from ndg.security.test.unit.wsgi import PasteDeployAppServer 
     19 
     20INI_FILEPATH = 'securityservices.ini' 
    1621 
    1722# To start run  
     
    2530        port = 7443 
    2631         
    27     cfgFileName='securityservices.ini' 
    28     cfgFilePath = os.path.join(dirname(abspath(__file__)), cfgFileName)     
    29     server = PasteDeployAppServer(cfgFilePath=cfgFilePath, port=port)  
     32    cfgFileName = INI_FILEPATH 
     33    cfgFilePath = os.path.join(dirname(abspath(__file__)), cfgFileName)   
     34     
     35    certFilePath = os.path.join(BaseTestCase.NDGSEC_TEST_CONFIG_DIR,  
     36                                'pki',  
     37                                'localhost.crt') 
     38    priKeyFilePath = os.path.join(BaseTestCase.NDGSEC_TEST_CONFIG_DIR,  
     39                                  'pki',  
     40                                  'localhost.key') 
     41     
     42    ssl_context = SSL.Context(SSL.SSLv23_METHOD) 
     43    ssl_context.set_options(SSL.OP_NO_SSLv2) 
     44 
     45    ssl_context.use_privatekey_file(priKeyFilePath) 
     46    ssl_context.use_certificate_file(certFilePath) 
     47 
     48    server = PasteDeployAppServer(cfgFilePath=cfgFilePath,  
     49                                  port=port, 
     50                                  ssl_context=ssl_context)  
    3051    server.start() 
Note: See TracChangeset for help on using the changeset viewer.