Ignore:
Timestamp:
30/11/06 10:47:28 (14 years ago)
Author:
pjkersha
Message:

Added WSSecurityHandler and WSSecurityHandlerChainFactory to allow integration of
wsSecurity.signatureHandler into Twisted framework.

server/SessionMgr/server-config.tac still contains a stub to the real Session Manager code but stub
adapted to return example Attribute Certificate, cookie and proxy certificate in order to test for
problems against the signature handler.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/python/ndg.security.test/ndg/security/test/SessionMgrClientTest.py

    r1784 r1785  
    172172         
    173173        self.testCookieConnect() 
    174         resp = self.clnt.reqAuthorisation(\ 
     174        attCert, statusCode, extAttCertList = self.clnt.reqAuthorisation(\ 
    175175                        sessID=self.sessCookie.sessionID,  
    176176                        attAuthorityURI=self.config['aaURI'], 
    177177                        encrSessionMgrURI=self.sessCookie.encrSessionMgrURI) 
    178            
    179         print resp 
     178         
     179        print "Attribute Certificate:\n%s" % attCert   
     180        print "User authorisation: %s" % statusCode 
     181        print "External Attribute Certificate List:\n%s" % extAttCertList 
    180182 
    181183 
     
    185187         
    186188        self.testCookieConnect() 
    187         resp = self.clnt.reqAuthorisation(\ 
     189        attCert, statusCode, extAttCertList = self.clnt.reqAuthorisation(\ 
    188190                        sessID=self.sessCookie.sessionID,  
    189191                        attAuthorityURI=self.config['aaURI'], 
     
    191193                        extAttCertList=['AC1', 'AC2', 'AC3']) 
    192194           
    193         print resp 
     195        print "Attribute Certificate:\n%s" % attCert   
     196        print "User authorisation: %s" % statusCode 
     197        print "External Attribute Certificate List:\n%s" % extAttCertList 
    194198 
    195199 
     
    201205        # Request an attribute certificate from an Attribute Authority  
    202206        # using the proxyCert returned from connect() 
    203         resp = self.clnt.reqAuthorisation(proxyCert=self.proxyCert, 
     207        attCert, statusCode, extAttCertList = self.clnt.reqAuthorisation(\ 
     208                                         proxyCert=self.proxyCert, 
    204209                                         attAuthorityURI=self.config['aaURI']) 
    205                                               
    206         print resp 
     210           
     211        print "Attribute Certificate:\n%s" % attCert   
     212        print "User authorisation: %s" % statusCode 
     213        print "External Attribute Certificate List:\n%s" % extAttCertList 
    207214 
    208215 
Note: See TracChangeset for help on using the changeset viewer.