1 | <?php |
||
2 | |||
3 | declare(strict_types=1); |
||
4 | |||
5 | namespace SimpleSAML\Module\adfs; |
||
6 | |||
7 | use SimpleSAML\Module; |
||
8 | use SimpleSAML\Module\adfs\Trust; |
||
9 | use SimpleSAML\WSDL\XML\soap12\{ |
||
10 | Address as Soap12Address, |
||
11 | Binding as Soap12Binding, |
||
12 | Body as Soap12Body, |
||
13 | Operation as Soap12Operation, |
||
14 | }; |
||
15 | use SimpleSAML\WSDL\XML\wsdl\{ |
||
16 | Binding, |
||
17 | BindingOperation, |
||
18 | BindingOperationInput, |
||
19 | BindingOperationOutput, |
||
20 | Definitions, |
||
21 | Input, |
||
22 | Message, |
||
23 | Output, |
||
24 | Part, |
||
25 | Port, |
||
26 | PortType, |
||
27 | PortTypeOperation, |
||
28 | Service, |
||
29 | Types, |
||
30 | }; |
||
31 | use SimpleSAML\WSSecurity\Constants as C; |
||
32 | use SimpleSAML\WSSecurity\XML\wsa_200508\{Address, EndpointReference}; |
||
33 | use SimpleSAML\WSSecurity\XML\wsp\PolicyReference; |
||
34 | use SimpleSAML\WSSecurity\XML\wst_200502\{ |
||
35 | RequestSecurityToken as RequestSecurityToken2005, |
||
36 | RequestSecurityTokenResponse as RequestSecurityTokenResponse2005, |
||
37 | }; |
||
38 | use SimpleSAML\WSSecurity\XML\wst_200512\{ |
||
39 | RequestSecurityToken as RequestSecurityToken13, |
||
40 | RequestSecurityTokenResponseCollection as RequestSecurityTokenResponseCollection13, |
||
41 | }; |
||
42 | use SimpleSAML\XML\Attribute as XMLAttribute; |
||
43 | |||
44 | //use SimpleSAML\XML\Chunk; |
||
45 | //use SimpleSAML\XML\DOMDocumentFactory; |
||
46 | |||
47 | use function array_merge; |
||
48 | use function sprintf; |
||
49 | |||
50 | /** |
||
51 | * Common code for building MetaExchange (mex) documents based on the available configuration. |
||
52 | * |
||
53 | * @package simplesamlphp/simplesamlphp-module-adfs |
||
54 | */ |
||
55 | class MetadataExchange |
||
56 | { |
||
57 | /** |
||
58 | * Constructor. |
||
59 | * |
||
60 | * @param \SimpleSAML\Configuration $config The general configuration |
||
61 | * @param \SimpleSAML\Configuration $metadata The metadata configuration |
||
62 | */ |
||
63 | public function __construct() |
||
64 | { |
||
65 | } |
||
66 | |||
67 | |||
68 | /** |
||
69 | * Build a mex document |
||
70 | * |
||
71 | * @return \SimpleSAML\WSSecurity\XML\wsdl\Definitions |
||
72 | */ |
||
73 | public function buildDocument(): Definitions |
||
74 | { |
||
75 | return new Definitions( |
||
76 | targetNamespace: 'http://schemas.microsoft.com/ws/2008/06/identity/securitytokenservice', |
||
77 | name: 'SecurityTokenService', |
||
78 | //import: [], |
||
79 | //types: $this->getTypes(), |
||
80 | message: $this->getMessages(), |
||
81 | portType: $this->getPortTypes(), |
||
82 | binding: $this->getBindings(), |
||
83 | service: $this->getServices(), |
||
84 | elements: $this->getPolicies(), |
||
85 | ); |
||
86 | } |
||
87 | |||
88 | |||
89 | /** |
||
90 | * This method builds the wsp:Policy elements |
||
91 | * |
||
92 | * @param \SimpleSAML\WSSecurity\XML\wsp\Policy[] |
||
93 | */ |
||
94 | private function getPolicies(): array |
||
95 | { |
||
96 | $policy2005 = new Trust\Policy2005(); |
||
97 | $policy13 = new Trust\Policy13(); |
||
0 ignored issues
–
show
Unused Code
introduced
by
![]() |
|||
98 | |||
99 | return array_merge( |
||
100 | $policy2005->getPolicies(), |
||
101 | //$policy13->getPolicies(), |
||
102 | ); |
||
103 | } |
||
104 | |||
105 | |||
106 | /** |
||
107 | * This method builds the wsdl:types elements |
||
108 | * |
||
109 | * @param \SimpleSAML\WSSecurity\XML\wsdl\Types[] |
||
110 | private function getTypes(): array |
||
111 | { |
||
112 | $defaultEndpoint = Module::getModuleURL('adfs/services/trust/mex'); |
||
113 | $xml = <<<IMPORT |
||
114 | <xsd:schema |
||
115 | xmlns:xsd="http://www.w3.org/2001/XMLSchema" |
||
116 | targetNamespace="http://schemas.microsoft.com/ws/2008/06/identity/securitytokenservice/Imports"> |
||
117 | <xsd:import schemaLocation="$defaultEndpoint?xsd=xsd0" namespace="http://schemas.microsoft.com/Message"/> |
||
118 | <xsd:import schemaLocation="$defaultEndpoint?xsd=xsd1" namespace="http://schemas.xmlsoap.org/ws/2005/02/trust"/> |
||
119 | <xsd:import schemaLocation="$defaultEndpoint?xsd=xsd2" namespace="http://docs.oasis-open.org/ws-sx/ws-trust/200512"/> |
||
120 | </xsd:schema> |
||
121 | IMPORT; |
||
122 | |||
123 | return [ |
||
124 | new Types([ |
||
125 | new Chunk(DOMDocumentFactory::fromString($xml)->documentElement), |
||
126 | ]), |
||
127 | ]; |
||
128 | } |
||
129 | */ |
||
130 | |||
131 | |||
132 | /** |
||
133 | * This method builds the wsdl:message elements |
||
134 | * |
||
135 | * @param \SimpleSAML\WSSecurity\XML\wsdl\Message[] |
||
136 | */ |
||
137 | private function getMessages(): array |
||
138 | { |
||
139 | return [ |
||
140 | new Message( |
||
141 | 'IWSTrustFeb2005Async_TrustFeb2005IssueAsync_InputMessage', |
||
142 | [new Part( |
||
143 | 'request', |
||
144 | sprintf( |
||
145 | "%s:%s", |
||
146 | RequestSecurityToken2005::getNamespacePrefix(), |
||
147 | RequestSecurityToken2005::getLocalName(), |
||
148 | ), |
||
149 | )], |
||
150 | ), |
||
151 | new Message( |
||
152 | 'IWSTrustFeb2005Async_TrustFeb2005IssueAsync_OutputMessage', |
||
153 | [new Part( |
||
154 | 'TrustFeb2005IssueAsyncResult', |
||
155 | sprintf( |
||
156 | "%s:%s", |
||
157 | RequestSecurityTokenResponse2005::getNamespacePrefix(), |
||
158 | RequestSecurityTokenResponse2005::getLocalName(), |
||
159 | ), |
||
160 | )], |
||
161 | ), |
||
162 | /* |
||
163 | new Message( |
||
164 | 'IWSTrust13Async_Trust13IssueAsync_InputMessage', |
||
165 | [new Part( |
||
166 | 'request', |
||
167 | sprintf( |
||
168 | "%s:%s", |
||
169 | RequestSecurityToken13::getNamespacePrefix(), |
||
170 | RequestSecurityToken13::getLocalName(), |
||
171 | ), |
||
172 | )], |
||
173 | ), |
||
174 | new Message( |
||
175 | 'IWSTrust13Async_Trust13IssueAsync_OutputMessage', |
||
176 | [new Part( |
||
177 | 'Trust13IssueAsyncResult', |
||
178 | sprintf( |
||
179 | "%s:%s", |
||
180 | RequestSecurityTokenResponseCollection13::getNamespacePrefix(), |
||
181 | RequestSecurityTokenResponseCollection13::getLocalName(), |
||
182 | ), |
||
183 | )], |
||
184 | ), |
||
185 | */ |
||
186 | ]; |
||
187 | } |
||
188 | |||
189 | |||
190 | /** |
||
191 | * This method builds the wsdl:portType elements |
||
192 | * |
||
193 | * @param \SimpleSAML\WSSecurity\XML\wsdl\PortType[] |
||
194 | */ |
||
195 | private function getPortTypes(): array |
||
196 | { |
||
197 | return [ |
||
198 | new PortType('IWSTrustFeb2005Async', [ |
||
199 | new PortTypeOperation( |
||
200 | name: 'TrustFeb2005IssueAsync', |
||
201 | input: new Input( |
||
202 | message: 'tns:IWSTrustFeb2005Async_TrustFeb2005IssueAsync_InputMessage', |
||
203 | attributes: [ |
||
204 | new XMLAttribute( |
||
205 | C::NS_WSDL_ADDR, |
||
206 | 'wsaw', |
||
207 | 'Action', |
||
208 | 'http://schemas.xmlsoap.org/ws/2005/02/trust/RST/Issue', |
||
209 | ), |
||
210 | ], |
||
211 | ), |
||
212 | output: new Output( |
||
213 | message: 'tns:IWSTrustFeb2005Async_TrustFeb2005IssueAsync_OutputMessage', |
||
214 | attributes: [ |
||
215 | new XMLAttribute( |
||
216 | C::NS_WSDL_ADDR, |
||
217 | 'wsaw', |
||
218 | 'Action', |
||
219 | 'http://schemas.xmlsoap.org/ws/2005/02/trust/RSTR/Issue', |
||
220 | ), |
||
221 | ], |
||
222 | ), |
||
223 | ), |
||
224 | ]), |
||
225 | /* |
||
226 | new PortType('IWSTrust13Async', [ |
||
227 | new PortTypeOperation( |
||
228 | name: 'Trust13IssueAsync', |
||
229 | input: new Input( |
||
230 | message: 'tns:IWSTrust13Async_Trust13IssueAsync_InputMessage', |
||
231 | attributes: [ |
||
232 | new XMLAttribute( |
||
233 | C::NS_WSDL_ADDR, |
||
234 | 'wsaw', |
||
235 | 'Action', |
||
236 | 'http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Issue', |
||
237 | ), |
||
238 | ], |
||
239 | ), |
||
240 | output: new Output( |
||
241 | message: 'tns:IWSTrust13Async_Trust13IssueAsync_OutputMessage', |
||
242 | attributes: [ |
||
243 | new XMLAttribute( |
||
244 | C::NS_WSDL_ADDR, |
||
245 | 'wsaw', |
||
246 | 'Action', |
||
247 | 'http://docs.oasis-open.org/ws-sx/ws-trust/200512/RSTRC/IssueFinal', |
||
248 | ), |
||
249 | ], |
||
250 | ), |
||
251 | ), |
||
252 | ]), |
||
253 | */ |
||
254 | ]; |
||
255 | } |
||
256 | |||
257 | |||
258 | /** |
||
259 | * This method builds the wsdl:binding elements |
||
260 | * |
||
261 | * @param \SimpleSAML\WSSecurity\XML\wsdl\Binding[] |
||
262 | */ |
||
263 | private function getBindings(): array |
||
264 | { |
||
265 | return [ |
||
266 | new Binding( |
||
267 | name: 'CertificateWSTrustBinding_IWSTrustFeb2005Async', |
||
268 | type: 'tns:IWSTrustFeb2005Async', |
||
269 | operation: [ |
||
270 | new BindingOperation( |
||
271 | name: 'TrustFeb2005IssueAsync', |
||
272 | input: new BindingOperationInput( |
||
273 | elements: [ |
||
274 | new Soap12Body(null, null, 'literal'), |
||
275 | ], |
||
276 | ), |
||
277 | output: new BindingOperationOutput( |
||
278 | elements: [ |
||
279 | new Soap12Body(null, null, 'literal'), |
||
280 | ], |
||
281 | ), |
||
282 | elements: [ |
||
283 | new Soap12Operation( |
||
284 | 'http://schemas.xmlsoap.org/ws/2005/02/trust/RST/Issue', |
||
285 | null, |
||
286 | 'document', |
||
287 | ), |
||
288 | ], |
||
289 | ), |
||
290 | ], |
||
291 | elements: [ |
||
292 | new PolicyReference( |
||
293 | URI: '#CertificateWSTrustBinding_IWSTrustFeb2005Async_policy', |
||
294 | DigestAlgorithm: null, |
||
295 | ), |
||
296 | new Soap12Binding('http://schemas.xmlsoap.org/soap/http'), |
||
297 | ], |
||
298 | ), |
||
299 | new Binding( |
||
300 | name: 'CertificateWSTrustBinding_IWSTrustFeb2005Async1', |
||
301 | type: 'tns:IWSTrustFeb2005Async', |
||
302 | operation: [ |
||
303 | new BindingOperation( |
||
304 | name: 'TrustFeb2005IssueAsync', |
||
305 | input: new BindingOperationInput( |
||
306 | elements: [ |
||
307 | new Soap12Body(null, null, 'literal'), |
||
308 | ], |
||
309 | ), |
||
310 | output: new BindingOperationOutput( |
||
311 | elements: [ |
||
312 | new Soap12Body(null, null, 'literal'), |
||
313 | ], |
||
314 | ), |
||
315 | elements: [ |
||
316 | new Soap12Operation( |
||
317 | 'http://schemas.xmlsoap.org/ws/2005/02/trust/RST/Issue', |
||
318 | null, |
||
319 | 'document', |
||
320 | ), |
||
321 | ], |
||
322 | ), |
||
323 | ], |
||
324 | elements: [ |
||
325 | new PolicyReference( |
||
326 | URI: '#CertificateWSTrustBinding_IWSTrustFeb2005Async1_policy', |
||
327 | DigestAlgorithm: null, |
||
328 | ), |
||
329 | new Soap12Binding('http://schemas.xmlsoap.org/soap/http'), |
||
330 | ], |
||
331 | ), |
||
332 | new Binding( |
||
333 | name: 'UserNameWSTrustBinding_IWSTrustFeb2005Async', |
||
334 | type: 'tns:IWSTrustFeb2005Async', |
||
335 | operation: [ |
||
336 | new BindingOperation( |
||
337 | name: 'TrustFeb2005IssueAsync', |
||
338 | input: new BindingOperationInput( |
||
339 | elements: [ |
||
340 | new Soap12Body(null, null, 'literal'), |
||
341 | ], |
||
342 | ), |
||
343 | output: new BindingOperationOutput( |
||
344 | elements: [ |
||
345 | new Soap12Body(null, null, 'literal'), |
||
346 | ], |
||
347 | ), |
||
348 | elements: [ |
||
349 | new Soap12Operation( |
||
350 | 'http://schemas.xmlsoap.org/ws/2005/02/trust/RST/Issue', |
||
351 | null, |
||
352 | 'document', |
||
353 | ), |
||
354 | ], |
||
355 | ), |
||
356 | ], |
||
357 | elements: [ |
||
358 | new PolicyReference( |
||
359 | URI: '#UserNameWSTrustBinding_IWSTrustFeb2005Async_policy', |
||
360 | DigestAlgorithm: null, |
||
361 | ), |
||
362 | new Soap12Binding('http://schemas.xmlsoap.org/soap/http'), |
||
363 | ], |
||
364 | ), |
||
365 | new Binding( |
||
366 | name: 'IssuedTokenWSTrustBinding_IWSTrustFeb2005Async', |
||
367 | type: 'tns:IWSTrustFeb2005Async', |
||
368 | operation: [ |
||
369 | new BindingOperation( |
||
370 | name: 'TrustFeb2005IssueAsync', |
||
371 | input: new BindingOperationInput( |
||
372 | elements: [ |
||
373 | new Soap12Body(null, null, 'literal'), |
||
374 | ], |
||
375 | ), |
||
376 | output: new BindingOperationOutput( |
||
377 | elements: [ |
||
378 | new Soap12Body(null, null, 'literal'), |
||
379 | ], |
||
380 | ), |
||
381 | elements: [ |
||
382 | new Soap12Operation( |
||
383 | 'http://schemas.xmlsoap.org/ws/2005/02/trust/RST/Issue', |
||
384 | null, |
||
385 | 'document', |
||
386 | ), |
||
387 | ], |
||
388 | ), |
||
389 | ], |
||
390 | elements: [ |
||
391 | new PolicyReference( |
||
392 | URI: '#IssuedTokenWSTrustBinding_IWSTrustFeb2005Async_policy', |
||
393 | DigestAlgorithm: null, |
||
394 | ), |
||
395 | new Soap12Binding('http://schemas.xmlsoap.org/soap/http'), |
||
396 | ], |
||
397 | ), |
||
398 | new Binding( |
||
399 | name: 'IssuedTokenWSTrustBinding_IWSTrustFeb2005Async1', |
||
400 | type: 'tns:IWSTrustFeb2005Async', |
||
401 | operation: [ |
||
402 | new BindingOperation( |
||
403 | name: 'TrustFeb2005IssueAsync', |
||
404 | input: new BindingOperationInput( |
||
405 | elements: [ |
||
406 | new Soap12Body(null, null, 'literal'), |
||
407 | ], |
||
408 | ), |
||
409 | output: new BindingOperationOutput( |
||
410 | elements: [ |
||
411 | new Soap12Body(null, null, 'literal'), |
||
412 | ], |
||
413 | ), |
||
414 | elements: [ |
||
415 | new Soap12Operation( |
||
416 | 'http://schemas.xmlsoap.org/ws/2005/02/trust/RST/Issue', |
||
417 | null, |
||
418 | 'document', |
||
419 | ), |
||
420 | ], |
||
421 | ), |
||
422 | ], |
||
423 | elements: [ |
||
424 | new PolicyReference( |
||
425 | URI: '#IssuedTokenWSTrustBinding_IWSTrustFeb2005Async1_policy', |
||
426 | DigestAlgorithm: null, |
||
427 | ), |
||
428 | new Soap12Binding('http://schemas.xmlsoap.org/soap/http'), |
||
429 | ], |
||
430 | ), |
||
431 | /* |
||
432 | new Binding( |
||
433 | name: 'CertificateWSTrustBinding_IWSTrust13Async', |
||
434 | type: 'tns:IWSTrust13Async', |
||
435 | operation: [ |
||
436 | new BindingOperation( |
||
437 | name: 'Trust13IssueAsync', |
||
438 | input: new BindingOperationInput( |
||
439 | elements: [ |
||
440 | new Soap12Body(null, null, 'literal'), |
||
441 | ], |
||
442 | ), |
||
443 | output: new BindingOperationOutput( |
||
444 | elements: [ |
||
445 | new Soap12Body(null, null, 'literal'), |
||
446 | ], |
||
447 | ), |
||
448 | elements: [ |
||
449 | new Soap12Operation( |
||
450 | 'http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Issue', |
||
451 | null, |
||
452 | 'document', |
||
453 | ), |
||
454 | ], |
||
455 | ), |
||
456 | ], |
||
457 | elements: [ |
||
458 | new PolicyReference( |
||
459 | URI: '#CertificateWSTrustBinding_IWSTrust13Async_policy', |
||
460 | DigestAlgorithm: null, |
||
461 | ), |
||
462 | new Soap12Binding('http://schemas.xmlsoap.org/soap/http'), |
||
463 | ], |
||
464 | ), |
||
465 | new Binding( |
||
466 | name: 'UserNameWSTrustBinding_IWSTrust13Async', |
||
467 | type: 'tns:IWSTrust13Async', |
||
468 | operation: [ |
||
469 | new BindingOperation( |
||
470 | name: 'Trust13IssueAsync', |
||
471 | input: new BindingOperationInput( |
||
472 | elements: [ |
||
473 | new Soap12Body(null, null, 'literal'), |
||
474 | ], |
||
475 | ), |
||
476 | output: new BindingOperationOutput( |
||
477 | elements: [ |
||
478 | new Soap12Body(null, null, 'literal'), |
||
479 | ], |
||
480 | ), |
||
481 | elements: [ |
||
482 | new Soap12Operation( |
||
483 | 'http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Issue', |
||
484 | null, |
||
485 | 'document', |
||
486 | ), |
||
487 | ], |
||
488 | ), |
||
489 | ], |
||
490 | elements: [ |
||
491 | new PolicyReference( |
||
492 | URI: '#UserNameWSTrustBinding_IWSTrust13Async_policy', |
||
493 | DigestAlgorithm: null, |
||
494 | ), |
||
495 | new Soap12Binding('http://schemas.xmlsoap.org/soap/http'), |
||
496 | ], |
||
497 | ), |
||
498 | new Binding( |
||
499 | name: 'IssuedTokenWSTrustBinding_IWSTrust13Async', |
||
500 | type: 'tns:IWSTrust13Async', |
||
501 | operation: [ |
||
502 | new BindingOperation( |
||
503 | name: 'Trust13IssueAsync', |
||
504 | input: new BindingOperationInput( |
||
505 | elements: [ |
||
506 | new Soap12Body(null, null, 'literal'), |
||
507 | ], |
||
508 | ), |
||
509 | output: new BindingOperationOutput( |
||
510 | elements: [ |
||
511 | new Soap12Body(null, null, 'literal'), |
||
512 | ], |
||
513 | ), |
||
514 | elements: [ |
||
515 | new Soap12Operation( |
||
516 | 'http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Issue', |
||
517 | null, |
||
518 | 'document', |
||
519 | ), |
||
520 | ], |
||
521 | ), |
||
522 | ], |
||
523 | elements: [ |
||
524 | new PolicyReference( |
||
525 | URI: '#IssuedTokenWSTrustBinding_IWSTrust13Async_policy', |
||
526 | DigestAlgorithm: null, |
||
527 | ), |
||
528 | new Soap12Binding('http://schemas.xmlsoap.org/soap/http'), |
||
529 | ], |
||
530 | ), |
||
531 | new Binding( |
||
532 | name: 'IssuedTokenWSTrustBinding_IWSTrust13Async1', |
||
533 | type: 'tns:IWSTrust13Async', |
||
534 | operation: [ |
||
535 | new BindingOperation( |
||
536 | name: 'Trust13IssueAsync', |
||
537 | input: new BindingOperationInput( |
||
538 | elements: [ |
||
539 | new Soap12Body(null, null, 'literal'), |
||
540 | ], |
||
541 | ), |
||
542 | output: new BindingOperationOutput( |
||
543 | elements: [ |
||
544 | new Soap12Body(null, null, 'literal'), |
||
545 | ], |
||
546 | ), |
||
547 | elements: [ |
||
548 | new Soap12Operation( |
||
549 | 'http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Issue', |
||
550 | null, |
||
551 | 'document', |
||
552 | ), |
||
553 | ], |
||
554 | ), |
||
555 | ], |
||
556 | elements: [ |
||
557 | new PolicyReference( |
||
558 | URI: '#IssuedTokenWSTrustBinding_IWSTrust13Async1_policy', |
||
559 | DigestAlgorithm: null, |
||
560 | ), |
||
561 | new Soap12Binding('http://schemas.xmlsoap.org/soap/http'), |
||
562 | ], |
||
563 | ), |
||
564 | */ |
||
565 | ]; |
||
566 | } |
||
567 | |||
568 | |||
569 | /** |
||
570 | * This method builds the wsdl:service elements |
||
571 | * |
||
572 | * @param \SimpleSAML\WSSecurity\XML\wsdl\Service[] |
||
573 | */ |
||
574 | private function getServices(): array |
||
575 | { |
||
576 | $defaultEndpoint = Module::getModuleURL('adfs/ws-trust/2005/services/'); |
||
577 | |||
578 | return [ |
||
579 | new Service( |
||
580 | name: 'SecurityTokenService', |
||
581 | ports: [ |
||
582 | new Port( |
||
583 | name: 'CertificateWSTrustBinding_IWSTrustFeb2005Async', |
||
584 | binding: 'tns:CertificateWSTrustBinding_IWSTrustFeb2005Async', |
||
585 | elements: [ |
||
586 | new Soap12Address($defaultEndpoint . 'certificatemixed'), |
||
587 | new EndpointReference( |
||
588 | new Address($defaultEndpoint . 'certificatemixed'), |
||
589 | ), |
||
590 | ], |
||
591 | ), |
||
592 | new Port( |
||
593 | name: 'CertificateWSTrustBinding_IWSTrustFeb2005Async1', |
||
594 | binding: 'tns:CertificateWSTrustBinding_IWSTrustFeb2005Async1', |
||
595 | elements: [ |
||
596 | new Soap12Address($defaultEndpoint . 'certificatetransport'), |
||
597 | new EndpointReference( |
||
598 | new Address($defaultEndpoint . 'certificatetransport'), |
||
599 | ), |
||
600 | ], |
||
601 | ), |
||
602 | new Port( |
||
603 | name: 'UserNameWSTrustBinding_IWSTrustFeb2005Async', |
||
604 | binding: 'tns:UserNameWSTrustBinding_IWSTrustFeb2005Async', |
||
605 | elements: [ |
||
606 | new Soap12Address($defaultEndpoint . 'usernamemixed'), |
||
607 | new EndpointReference( |
||
608 | new Address($defaultEndpoint . 'usernamemixed'), |
||
609 | ), |
||
610 | ], |
||
611 | ), |
||
612 | new Port( |
||
613 | name: 'IssuedTokenWSTrustBinding_IWSTrustFeb2005Async', |
||
614 | binding: 'tns:IssuedTokenWSTrustBinding_IWSTrustFeb2005Async', |
||
615 | elements: [ |
||
616 | new Soap12Address($defaultEndpoint . 'issuedtokenmixedasymmetricbasic256'), |
||
617 | new EndpointReference( |
||
618 | new Address($defaultEndpoint . 'issuedtokenmixedasymmetricbasic256'), |
||
619 | ), |
||
620 | ], |
||
621 | ), |
||
622 | new Port( |
||
623 | name: 'IssuedTokenWSTrustBinding_IWSTrustFeb2005Async1', |
||
624 | binding: 'tns:IssuedTokenWSTrustBinding_IWSTrustFeb2005Async1', |
||
625 | elements: [ |
||
626 | new Soap12Address($defaultEndpoint . 'issuedtokenmixedsymmetricbasic256'), |
||
627 | new EndpointReference( |
||
628 | new Address($defaultEndpoint . 'issuedtokenmixedsymmetricbasic256'), |
||
629 | ), |
||
630 | ], |
||
631 | ), |
||
632 | /* |
||
633 | new Port( |
||
634 | name: 'CertificateWSTrustBinding_IWSTrust13Async', |
||
635 | binding: 'tns:CertificateWSTrustBinding_IWSTrust13Async', |
||
636 | elements: [ |
||
637 | new Soap12Address($defaultEndpoint . '13/certificatemixed'), |
||
638 | new EndpointReference( |
||
639 | new Address($defaultEndpoint . '13/certificatemixed'), |
||
640 | ), |
||
641 | ], |
||
642 | ), |
||
643 | new Port( |
||
644 | name: 'UserNameWSTrustBinding_IWSTrust13Async', |
||
645 | binding: 'tns:UserNameWSTrustBinding_IWSTrust13Async', |
||
646 | elements: [ |
||
647 | new Soap12Address($defaultEndpoint . '13/usernamemixed'), |
||
648 | new EndpointReference( |
||
649 | new Address($defaultEndpoint . '13/usernamemixed'), |
||
650 | ), |
||
651 | ], |
||
652 | ), |
||
653 | new Port( |
||
654 | name: 'IssuedTokenWSTrustBinding_IWSTrust13Async', |
||
655 | binding: 'tns:IssuedTokenWSTrustBinding_IWSTrust13Async', |
||
656 | elements: [ |
||
657 | new Soap12Address($defaultEndpoint . '13/issuedtokenmixedasymmetricbasic256'), |
||
658 | new EndpointReference( |
||
659 | new Address($defaultEndpoint . '13/issuedtokenmixedasymmetricbasic256'), |
||
660 | ), |
||
661 | ], |
||
662 | ), |
||
663 | new Port( |
||
664 | name: 'IssuedTokenWSTrustBinding_IWSTrust13Async1', |
||
665 | binding: 'tns:IssuedTokenWSTrustBinding_IWSTrust13Async1', |
||
666 | elements: [ |
||
667 | new Soap12Address($defaultEndpoint . '13/issuedtokenmixedsymmetricbasic256'), |
||
668 | new EndpointReference( |
||
669 | new Address($defaultEndpoint . '13/issuedtokenmixedsymmetricbasic256'), |
||
670 | ), |
||
671 | ], |
||
672 | ), |
||
673 | */ |
||
674 | ], |
||
675 | ), |
||
676 | ]; |
||
677 | } |
||
678 | } |
||
679 |