Ignore:
Timestamp:
25/05/06 16:14:18 (13 years ago)
Author:
pjkersha
Message:

Tests/SecurityClientTest?.py: mods to run on gabriel.

Tests/security.py: added functionality to get trusted host info.

dist/NDG-Security-0.66.tar.gz: new distro for testing on gabriel.

conf/mapConfig.xml: added loginURI tag for each trusted host - indicate URI for user login useful for forwarding of
login page from remote site.

NDG/AttAuthorityIO.py: include loginURI tag in trusted host info response message.

NDG/SecurityCGI.py: include functionality to get trusted host info from an AttAuthority?

NDG/AttAuthority.py: added loginURI tag for getTrustedHostInfo call.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/python/NDG/AttAuthorityIO.py

    r930 r1018  
    299299        # Allow user credentials to be access like dictionary keys 
    300300        super(self.__class__, self).__init__(**xmlMsgKeys) 
     301         
     302         
    301303    #_________________________________________________________________________ 
    302304    def updateXML(self, **xmlTags): 
     
    320322                    xmlTxt += os.linesep 
    321323                    xmlTxt += "            <wsdl>%s</wsdl>" % hostInfo['wsdl'] 
     324                    xmlTxt += "            <loginURI>%s</loginURI>" % \ 
     325                                                        hostInfo['loginURI'] 
    322326                    xmlTxt += os.linesep 
    323327                    xmlTxt += "            <roleSet>" + os.linesep 
     
    352356        trustedHostsElem = rootElem.find('trustedHosts') 
    353357        if not trustedHostsElem: 
    354             raise TrustedHostInfoRespError(\ 
    355             "\"trustedHosts\" tag not found in trusted host info response") 
     358            # No trusted hosts were found 
     359            return 
    356360          
    357361        for trusted in trustedHostsElem: 
     
    362366                self['trustedHosts'][host] = {} 
    363367                 
    364                 # Add WSDL URI and role set for that host 
     368                # Add WSDL URI, loginURI and role set for that host 
    365369                self['trustedHosts'][host]['wsdl'] = \ 
    366370                                            trusted.find('wsdl').text.strip() 
     371                                             
     372                self['trustedHosts'][host]['loginURI'] = \ 
     373                                        trusted.find('loginURI').text.strip() 
    367374                                             
    368375                self['trustedHosts'][host]['role'] = \ 
Note: See TracChangeset for help on using the changeset viewer.