Ignore:
Timestamp:
21/11/07 13:25:24 (13 years ago)
Author:
pjkersha
Message:

Adding getSessionStatus to enable SM clients to check a session is still valid.

python/ndg.security.server/ndg/security/server/SessionMgr/init.py:

  • new method getSessionStatus checks for a session's existence with given input sessID.

python/www/html/sessionMgr.wsdl,
python/ndg.security.server/ndg/security/server/SessionMgr/SessionMgr_services_server.py,
python/ndg.security.common/ndg/security/common/SessionMgr/SessionMgr_services.py:

  • added getSessionStatus operation to WSDL and regenerated the stubs

python/ndg.security.test/ndg/security/test/MyProxy/myProxyProperties.xml: replace refs to GLOBUS_LOCATION with NDGSEC_DIR for MyProxy? unit tests OpenSSL config file.

python/ndg.security.test/ndg/security/test/SessionMgr/SessionMgrTest.py: new unit test to test out ndg.security.server.SessionMgr?.SessionMgr? class. Previously, this required use of the SessionMgrClient? unit tests. ie. running over SOAP interface.

python/ndg.security.test/ndg/security/test/SessionMgr/sessionMgrProperties.xml,
python/ndg.security.test/ndg/security/test/SessionMgr/sessionMgrClientTest.cfg:

  • expt with settings to try twisted over http but run through proxy on 443 with Apache.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/python/www/html/sessionMgr.wsdl

    r2620 r3024  
    1212  <wsdl:types> 
    1313    <xsd:schema targetNamespace="urn:ndg:security:sessionMgr"> 
    14       <xsd:element name="addUser"> 
     14      <xsd:element name="getSessionStatus"> 
    1515        <xsd:complexType> 
    1616          <xsd:sequence> 
    17             <xsd:element name="username" type="xsd:string" minOccurs="1" maxOccurs="1"/> 
    18             <xsd:element name="passphrase" type="xsd:string" minOccurs="1" maxOccurs="1"/> 
     17            <xsd:element name="userDN" type="xsd:string" minOccurs="0" maxOccurs="1"/> 
     18            <xsd:element name="sessID" type="xsd:string" minOccurs="0" maxOccurs="1"/> 
    1919          </xsd:sequence> 
    2020        </xsd:complexType> 
    2121      </xsd:element> 
    2222       
    23       <xsd:element name="addUserResponse"> 
    24         <xsd:complexType/> 
     23      <xsd:element name="getSessionStatusResponse"> 
     24        <xsd:complexType> 
     25                    <xsd:element name="isAlive" type="xsd:boolean" minOccurs="1" maxOccurs="1"/> 
     26        </xsd:complexType> 
    2527      </xsd:element> 
    2628 
     
    100102  </wsdl:types> 
    101103  
    102   <wsdl:message name="addUserInputMsg"> 
    103     <wsdl:part name="parameters" element="tns:addUser"/> 
    104   </wsdl:message> 
    105  
    106   <wsdl:message name="addUserOutputMsg"> 
    107     <wsdl:part name="parameters" element="tns:addUserResponse"/> 
     104  <wsdl:message name="getSessionStatusInputMsg"> 
     105    <wsdl:part name="parameters" element="tns:getSessionStatus"/> 
     106  </wsdl:message> 
     107 
     108  <wsdl:message name="getSessionStatusOutputMsg"> 
     109    <wsdl:part name="parameters" element="tns:getSessionStatusResponse"/> 
    108110  </wsdl:message> 
    109111  
     
    141143 
    142144  <wsdl:portType name="SessionMgr"> 
    143     <wsdl:operation name="addUser"> 
    144       <wsdl:input message="tns:addUserInputMsg"/> 
    145       <wsdl:output message="tns:addUserOutputMsg"/> 
     145    <wsdl:operation name="getSessionStatus"> 
     146      <wsdl:input message="tns:getSessionStatusInputMsg"/> 
     147      <wsdl:output message="tns:getSessionStatusOutputMsg"/> 
    146148    </wsdl:operation> 
    147149 
     
    172174     transport="http://schemas.xmlsoap.org/soap/http"/> 
    173175 
    174     <wsdl:operation name="addUser"> 
    175       <soap:operation soapAction="addUser"/> 
     176    <wsdl:operation name="getSessionStatus"> 
     177      <soap:operation soapAction="getSessionStatus"/> 
    176178      <wsdl:input> 
    177179        <soap:body use="literal"/> 
Note: See TracChangeset for help on using the changeset viewer.