Skip to content
This repository was archived by the owner on Jan 21, 2026. It is now read-only.

Commit 853df29

Browse files
committed
Offload wsp elements to new xml-ws-policy library
1 parent fe9e488 commit 853df29

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+39
-1539
lines changed

classes/element.registry.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -296,14 +296,6 @@
296296
'XPath10' => '\SimpleSAML\WSSecurity\XML\sp_200702\XPath10',
297297
'XPathFilter20' => '\SimpleSAML\WSSecurity\XML\sp_200702\XPathFilter20',
298298
],
299-
'http://schemas.xmlsoap.org/ws/2004/09/policy' => [
300-
'All' => '\SimpleSAML\WSSecurity\XML\wsp\All',
301-
'AppliesTo' => '\SimpleSAML\WSSecurity\XML\wsp\AppliesTo',
302-
'ExactlyOne' => '\SimpleSAML\WSSecurity\XML\wsp\ExactlyOne',
303-
'Policy' => '\SimpleSAML\WSSecurity\XML\wsp\Policy',
304-
'PolicyAttachment' => '\SimpleSAML\WSSecurity\XML\wsp\PolicyAttachment',
305-
'PolicyReference' => '\SimpleSAML\WSSecurity\XML\wsp\PolicyReference',
306-
],
307299
'http://schemas.xmlsoap.org/ws/2005/02/trust' => [
308300
'AllowPostdating' => '\SimpleSAML\WSSecurity\XML\wst_200502\AllowPostdating',
309301
'AuthenticationType' => '\SimpleSAML\WSSecurity\XML\wst_200502\AuthenticationType',

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"simplesamlphp/xml-security": "~2.0",
2121
"simplesamlphp/xml-soap": "~2.0",
2222
"simplesamlphp/xml-ws-addressing": "~1.0",
23+
"simplesamlphp/xml-ws-policy": "~1.0",
2324
"simplesamlphp/xml-wss-core": "~1.0"
2425
},
2526
"require-dev": {

src/Constants.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@ class Constants extends \SimpleSAML\SAML2\Constants
2222
*/
2323
public const NS_FED = 'http://docs.oasis-open.org/wsfed/federation/200706';
2424

25-
/**
26-
* The namespace for WS-Policy protocol.
27-
*/
28-
public const NS_POLICY = 'http://schemas.xmlsoap.org/ws/2004/09/policy';
29-
3025
/**
3126
* The namespace for WS-Trust protocol.
3227
*/

src/Utils/XPath.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ public static function getXPath(DOMNode $node, bool $autoregister = false): DOMX
3232
$xp->registerNamespace('fed', C::NS_FED);
3333
$xp->registerNamespace('t', C::NS_TRUST_200502);
3434
$xp->registerNamespace('trust', C::NS_TRUST_200512);
35-
$xp->registerNamespace('policy', C::NS_POLICY);
3635
$xp->registerNamespace('sp11', C::NS_SEC_POLICY_11);
3736
$xp->registerNamespace('sp12', C::NS_SEC_POLICY_12);
3837

src/XML/wsp/AbstractOperatorContentType.php

Lines changed: 0 additions & 146 deletions
This file was deleted.

src/XML/wsp/AbstractWspElement.php

Lines changed: 0 additions & 25 deletions
This file was deleted.

src/XML/wsp/All.php

Lines changed: 0 additions & 18 deletions
This file was deleted.

src/XML/wsp/AppliesTo.php

Lines changed: 0 additions & 102 deletions
This file was deleted.

src/XML/wsp/ExactlyOne.php

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)