Changeset 1113 for TI07-MOLES
- Timestamp:
- 07/06/06 10:10:55 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TI07-MOLES/trunk/StubB/XSLT/browse/portal/cgi/secure.py
r1098 r1113 48 48 return 49 49 if cmdLine is not None: 50 self.__reEstablish(cmdLine=cmdLine) 50 self.__reEstablish() 51 self.cookieContents=cmdLine 51 52 52 53 … … 62 63 if not self.connected: return self.__Establish(parsedSimpleCondition) 63 64 64 resp = self.smClient.reqAuthorisation(sessCookie=cookieObj, 65 aaWSDL=wsdlAA, 66 aaPubKey=None, # the session client can get that from the WSDL 67 reqRole=role, 65 sessID,eSMWSDLuri=self.cookieContents 66 resp = self.smClient.reqAuthorisation( 67 sessID=sessID, 68 encrSessMgrWSDLuri=eSMWSDLuri, 69 reqRole=parsedSimpleCondition[0], 70 aaWSDL=parsedSimpleCondition[1], 68 71 rtnExtAttCertList=None, #auto select role map for now 69 72 clntPriKeyPwd=None # not using encrypted yet 70 73 ) 71 return 'AccessGranted'74 return str(resp) 72 75 73 76 def __SecCookie(self): … … 100 103 return self.__showSiteList(loginHostList) 101 104 102 def __reEstablish(self,cookie=None,cmdLine=None): 103 ''' bind to the existing WSDL ''' 104 105 if cmdLine is not None: 106 sessID,encrSessMgrWDLURI=cmdLine 105 def __reEstablish(self): 106 ''' bind to local session manager which acts as a proxy ''' 107 107 108 108 self.__loadKeys() 109 smWSDL=self.config.get('security','localSM',None) 109 110 try: 110 111 #set up session client 111 112 # (all these keys to do message level encryption while talking to server, 112 113 # see __loadKeys for more details) 113 self.smClient = SessionClient( 114 sessCookie=cookie, 115 encrSessMgrWSDLuri=WSDLuri, 116 sessID=sessID, 114 self.smClient = SessionClient(smWSDL=smWSDL, 117 115 smPubKeyFilePath=self.__localSessionManagerPublicKey, 118 116 clntPubKeyFilePath=self.__thisCGIpublicKey, 119 clntPriKeyFilePath=self.__thisCGIprivateKey, 120 traceFile=traceFile) 117 clntPriKeyFilePath=self.__thisCGIprivateKey) 121 118 self.connected=1 122 119 except Exception, e:
Note: See TracChangeset
for help on using the changeset viewer.