Skip to content

Commit 81f8211

Browse files
committed
Use SOAP-binding
1 parent 34b0403 commit 81f8211

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/Controller/AttributeServer.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use SimpleSAML\HTTP\RunnableResponse;
1111
use SimpleSAML\Metadata\MetaDataStorageHandler;
1212
use SimpleSAML\SAML2\Binding;
13-
use SimpleSAML\SAML2\Binding\{SynchronousBindingException, HTTPPost};
13+
use SimpleSAML\SAML2\Binding\{SynchronousBindingException, SOAP};
1414
use SimpleSAML\SAML2\Constants as C;
1515
use SimpleSAML\SAML2\Utils as SAML2_Utils;
1616
use SimpleSAML\SAML2\XML\saml\{
@@ -226,10 +226,8 @@ public function main(/** @scrutinizer ignore-unused */ Request $request): Runnab
226226

227227
self::addSign($idpMetadata, $spMetadata, $response);
228228

229-
$httpPost = new HTTPPost();
230-
$httpPost->setRelayState($binding->getRelayState());
231-
232-
return new RunnableResponse([$httpPost, 'send'], [$response]);
229+
$soap = new SOAP();
230+
return new RunnableResponse([$soap, 'send'], [$response]);
233231
}
234232

235233

0 commit comments

Comments
 (0)