Skip to content

Commit 9b1b49e

Browse files
committed
Remove problematic assertion; this should be handled by the idp/sp and not by the XML-library
1 parent bbb893b commit 9b1b49e

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/XML/md/AbstractRoleDescriptorType.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use DOMElement;
88
use SimpleSAML\SAML2\Assert\Assert;
99
use SimpleSAML\SAML2\Constants as C;
10-
use SimpleSAML\SAML2\Exception\ProtocolViolationException;
1110
use SimpleSAML\SAML2\Type\AnyURIListValue;
1211
use SimpleSAML\SAML2\Type\SAMLAnyURIValue;
1312
use SimpleSAML\SAML2\Type\SAMLDateTimeValue;
@@ -65,18 +64,6 @@ public function __construct(
6564
protected array $contact = [],
6665
array $namespacedAttributes = [],
6766
) {
68-
/**
69-
* A whitespace-delimited set of URIs that identify the set of protocol specifications supported by the
70-
* role element. For SAML V2.0 entities, this set MUST include the SAML protocol namespace URI,
71-
* urn:oasis:names:tc:SAML:2.0:protocol.
72-
*/
73-
Assert::contains(
74-
strval($protocolSupportEnumeration),
75-
C::NS_SAMLP,
76-
'SAML v2.0 entities MUST include the SAML protocol namespace URI in their'
77-
. ' protocolSupportEnumeration attribute',
78-
ProtocolViolationException::class,
79-
);
8067
Assert::maxCount($contact, C::UNBOUNDED_LIMIT);
8168
Assert::allIsInstanceOf(
8269
$contact,

0 commit comments

Comments
 (0)