source: TI12-security/trunk/python/www/html/sessionMgr.wsdl @ 2085

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/python/www/html/sessionMgr.wsdl@2085
Revision 2085, 7.8 KB checked in by pjkersha, 12 years ago (diff)

python/ndg.security.server/ndg/security/server/AttAuthority/server-config.tac:

python/www/html/attAuthority.wsdl,
python/ndg.security.server/ndg/security/server/AttAuthority/AttAuthority_services_server.py,
python/ndg.security.common/ndg/security/common/AttAuthority/AttAuthority_services_types.py,
python/ndg.security.common/ndg/security/common/AttAuthority/AttAuthority_services.py:
Include request denied message in getAttCertResponse.

python/ndg.security.server/ndg/security/server/AttAuthority/init.py:
fix to AttAuthorityAccessDenied? doc message.

python/ndg.security.server/ndg/security/server/SessionMgr/server-config.tac:
Exlpicitly convert AttCert? in response to string type.

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

  • make explicit imports from ndg.security.common.CredWallet?
  • make X509CertParse import
  • updated exception handling for getAttCert call to CredWallet?.

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,
python/ndg.security.common/ndg/security/common/SessionMgr/SessionMgr_services_types.py:
Remove statusCode from getAttCertResponse - not needed.

python/ndg.security.test/ndg/security/test/AttAuthority/AttAuthorityClientTest.py:
minor updates to getAttCert tests.

python/ndg.security.test/ndg/security/test/MyProxy/myProxyClientTest.cfg:
fix to test1Store settings

python/ndg.security.test/ndg/security/test/MyProxy/Makefile:
makefile copies proxy obtained from MyProxy? ready for use in AttAuthority? client tests.

python/ndg.security.test/ndg/security/test/SessionMgr/SessionMgrClientTest.py:

  • add AttributeRequestDenied? import from SessionMgr?.
  • fix test4CookieDisconnect signing PKI settings
  • revised output tuple for getAttCert calls.
  • Added test6aCookieGetAttCertRefused to demonstrate attribute request denied exception
  • test3ProxyCertConnect signature verification failing at server!

python/ndg.security.test/ndg/security/test/SessionMgr/sessionMgrClientTest.cfg:
added more getAttCert test params.

python/ndg.security.common/ndg/security/common/AttAuthority/init.py:

python/ndg.security.common/ndg/security/common/wsSecurity.py:
comment out all print statements - only 'print decryptedData' affected in decrypt method
of EncryptionHandler?. This is not in use.

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

  • Added AttributeRequestDenied? exception for handling getAttCert calls.
  • msg now included in output tuple for getAttCert call.

python/ndg.security.common/ndg/security/common/AttCert.py:
Override XMLSecDoc parent class toString and str calls so that output is returned even
if the signature DOM object has not been initialised.

python/ndg.security.common/ndg/security/common/CredWallet.py:

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<wsdl:definitions name="SessionMgr"
3 xmlns="http://schemas.xmlsoap.org/wsdl/"
4 xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
5 xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
6 xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
7 xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
8 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
9 xmlns:tns="urn:ndg:security:sessionMgr"
10 targetNamespace="urn:ndg:security:sessionMgr">
11
12  <wsdl:types>
13    <xsd:schema>
14      <xsd:element name="addUser">
15        <xsd:complexType>
16          <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"/>
19          </xsd:sequence>
20        </xsd:complexType>
21      </xsd:element>
22     
23      <xsd:element name="addUserResponse">
24        <xsd:complexType/>
25      </xsd:element>
26
27      <xsd:element name="connect">
28        <xsd:complexType>
29          <xsd:sequence>
30            <xsd:element name="username" type="xsd:string" minOccurs="1" maxOccurs="1"/>
31            <xsd:element name="passphrase" type="xsd:string" minOccurs="1" maxOccurs="1"/>
32                    <xsd:element name="createServerSess" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
33                    <xsd:element name="getCookie" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
34          </xsd:sequence>
35        </xsd:complexType>
36      </xsd:element>
37     
38      <xsd:element name="connectResponse">
39        <xsd:complexType>
40                  <xsd:sequence>
41                    <xsd:element name="proxyCert" type="xsd:string" minOccurs="1" maxOccurs="1"/>
42                    <xsd:element name="proxyPriKey" type="xsd:string" minOccurs="1" maxOccurs="1"/>
43                    <xsd:element name="userCert" type="xsd:string" minOccurs="1" maxOccurs="1"/>
44                    <xsd:element name="cookie" type="xsd:string" minOccurs="0" maxOccurs="1"/>
45                  </xsd:sequence>
46                </xsd:complexType>
47      </xsd:element>
48
49      <xsd:element name="disconnect">
50        <xsd:complexType>
51                  <xsd:sequence>
52                    <xsd:element name="userCert" type="xsd:string" minOccurs="0" maxOccurs="1"/>
53                    <xsd:element name="sessID" type="xsd:string" minOccurs="0" maxOccurs="1"/>
54                    <xsd:element name="encrSessionMgrURI" type="xsd:string" minOccurs="0" maxOccurs="1"/>
55                  </xsd:sequence>
56                </xsd:complexType>
57      </xsd:element>
58
59      <xsd:element name="disconnectResponse">
60        <xsd:complexType/>
61      </xsd:element>
62           
63      <xsd:element name="getAttCert">
64        <xsd:complexType>
65                  <xsd:sequence>
66                    <xsd:element name="userCert" type="xsd:string" minOccurs="0" maxOccurs="1"/>
67                    <xsd:element name="sessID" type="xsd:string" minOccurs="0" maxOccurs="1"/>
68                    <xsd:element name="encrSessionMgrURI" type="xsd:string" minOccurs="0" maxOccurs="1"/>
69                    <xsd:element name="attAuthorityURI" type="xsd:string" minOccurs="1" maxOccurs="1"/>
70                    <xsd:element name="attAuthorityCert" type="xsd:string" minOccurs="0" maxOccurs="1"/>
71                    <xsd:element name="reqRole" type="xsd:string" minOccurs="0" maxOccurs="1"/>
72                    <xsd:element name="mapFromTrustedHosts" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
73                    <xsd:element name="rtnExtAttCertList" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
74                        <xsd:element name="extAttCert" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
75                        <xsd:element name="extTrustedHost" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
76                  </xsd:sequence>
77                </xsd:complexType>
78      </xsd:element>
79     
80      <xsd:element name="getAttCertResponse">
81        <xsd:complexType>
82              <xsd:sequence>
83                <xsd:element name="attCert" type="xsd:string" minOccurs="0" maxOccurs="1"/>
84                <xsd:element name="msg" type="xsd:string" minOccurs="0" maxOccurs="1"/>
85                        <xsd:element name="extAttCert" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
86              </xsd:sequence>
87            </xsd:complexType>
88      </xsd:element>
89
90      <xsd:element name="getX509Cert">
91        <xsd:complexType/>
92      </xsd:element>
93     
94      <xsd:element name="getX509CertResponse">
95        <xsd:complexType>
96                  <xsd:sequence>
97                    <xsd:element name="x509Cert" type="xsd:string" minOccurs="1" maxOccurs="1"/>
98                  </xsd:sequence>
99                </xsd:complexType>
100      </xsd:element>
101
102    </xsd:schema>
103  </wsdl:types>
104 
105  <message name="addUserInputMsg">
106    <part name="parameters" element="tns:addUser"/>
107  </message>
108
109  <message name="addUserOutputMsg">
110    <part name="parameters" element="tns:addUserResponse"/>
111  </message>
112 
113  <message name="connectInputMsg">
114    <part name="parameters" element="tns:connect"/>
115  </message>
116
117  <message name="connectOutputMsg">
118    <part name="parameters" element="tns:connectResponse"/>
119  </message>
120 
121  <message name="disconnectInputMsg">
122    <part name="parameters" element="tns:disconnect"/>
123  </message>
124
125  <message name="disconnectOutputMsg">
126    <part name="parameters" element="tns:disconnectResponse"/>
127  </message>
128
129  <message name="getAttCertInputMsg">
130    <part name="parameters" element="tns:getAttCert"/>
131  </message>
132
133  <message name="getAttCertOutputMsg">
134    <part name="parameters" element="tns:getAttCertResponse"/>
135  </message>
136
137  <message name="getX509CertInputMsg">
138    <part name="parameters" element="tns:getX509Cert"/>
139  </message>
140
141  <message name="getX509CertOutputMsg">
142    <part name="parameters" element="tns:getX509CertResponse"/>
143  </message>
144
145  <wsdl:portType name="SessionMgr">
146    <wsdl:operation name="addUser">
147      <wsdl:input message="tns:addUserInputMsg"/>
148      <wsdl:output message="tns:addUserOutputMsg"/>
149    </wsdl:operation>
150
151    <operation name="connect">
152      <wsdl:input message="tns:connectInputMsg"/>
153      <wsdl:output message="tns:connectOutputMsg"/>
154    </operation>
155
156    <operation name="disconnect">
157      <wsdl:input message="tns:disconnectInputMsg"/>
158      <wsdl:output message="tns:disconnectOutputMsg"/>
159    </operation>
160
161    <operation name="getAttCert">
162      <wsdl:input message="tns:getAttCertInputMsg"/>
163      <wsdl:output message="tns:getAttCertOutputMsg"/>
164    </operation>
165
166    <operation name="getX509Cert">
167      <wsdl:input message="tns:getX509CertInputMsg"/>
168      <wsdl:output message="tns:getX509CertOutputMsg"/>
169    </operation>
170  </wsdl:portType> 
171 
172  <wsdl:binding name="SessionMgrBinding" type="tns:SessionMgr">
173    <soap:binding
174     style="document"
175     transport="http://schemas.xmlsoap.org/soap/http"/>
176
177    <operation name="addUser">
178      <soap:operation soapAction="addUser"/>
179      <wsdl:input>
180        <soap:body use="literal"/>
181      </wsdl:input>
182      <wsdl:output>
183        <soap:body use="literal"/>
184      </wsdl:output>
185    </operation>
186   
187    <operation name="connect">
188      <soap:operation soapAction="connect"/>
189      <wsdl:input>
190        <soap:body use="literal"/>
191      </wsdl:input>
192      <wsdl:output>
193        <soap:body use="literal"/>
194      </wsdl:output>
195    </operation>
196   
197    <operation name="disconnect">
198      <soap:operation soapAction="disconnect"/>
199      <wsdl:input>
200        <soap:body use="literal"/>
201      </wsdl:input>
202      <wsdl:output>
203        <soap:body use="literal"/>
204      </wsdl:output>
205    </operation>
206   
207    <operation name="getAttCert">
208      <soap:operation soapAction="getAttCert"/>
209      <wsdl:input>
210        <soap:body use="literal"/>
211      </wsdl:input>
212      <wsdl:output>
213        <soap:body use="literal"/>
214      </wsdl:output>
215    </operation>
216
217    <operation name="getX509Cert">
218      <soap:operation soapAction="getX509Cert"/>
219      <wsdl:input>
220        <soap:body use="literal"/>
221      </wsdl:input>
222      <wsdl:output>
223        <soap:body use="literal"/>
224      </wsdl:output>
225    </operation>   
226 
227  </wsdl:binding>
228
229  <wsdl:service name="SessionMgrService">
230    <wsdl:documentation>NERC Data Grid Session Manager web service</wsdl:documentation>
231    <wsdl:port name="SessionMgr" binding="tns:SessionMgrBinding">
232      <soap:address location="http://localhost:5000"/>
233    </wsdl:port>
234  </wsdl:service>
235</wsdl:definitions>
Note: See TracBrowser for help on using the repository browser.