Skip to content

Commit

Permalink
Fix namespaced IncludeToken-attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Sep 23, 2024
1 parent 90528bc commit cd68f4d
Show file tree
Hide file tree
Showing 17 changed files with 25 additions and 57 deletions.
26 changes: 1 addition & 25 deletions src/XML/sp_200507/AbstractTokenAssertionType.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,33 +24,24 @@ abstract class AbstractTokenAssertionType extends AbstractSpElement
{
use ExtendableAttributesTrait;
use ExtendableElementTrait;
use IncludeTokenTypeTrait;

/** The namespace-attribute for the xs:any element */
public const XS_ANY_ELT_NAMESPACE = NS::OTHER;

/** The namespace-attribute for the xs:anyAttribute element */
public const XS_ANY_ATTR_NAMESPACE = NS::ANY;

/** The exclusions for the xs:anyAttribute element */
public const XS_ANY_ATTR_EXCLUSIONS = [
[null, 'IncludeToken'],
];


/**
* TokenAssertionType constructor.
*
* @param \SimpleSAML\WSSecurity\XML\sp_200507\IncludeToken|string|null $includeToken
* @param array<\SimpleSAML\XML\SerializableElementInterface> $elts
* @param array<\SimpleSAML\XML\Attribute> $namespacedAttributes
*/
final public function __construct(
IncludeToken|string|null $includeToken = null,
array $elts = [],
array $namespacedAttributes = [],
) {
$this->setIncludeToken($includeToken);
$this->setElements($elts);
$this->setAttributesNS($namespacedAttributes);
}
Expand All @@ -63,8 +54,7 @@ final public function __construct(
*/
public function isEmptyElement(): bool
{
return empty($this->getIncludeToken())
&& empty($this->getAttributesNS())
return empty($this->getAttributesNS())
&& empty($this->getElements());
}

Expand All @@ -90,14 +80,7 @@ public static function fromXML(DOMElement $xml): static
InvalidDOMElementException::class,
);

$includeToken = self::getOptionalAttribute($xml, 'IncludeToken', null);
try {
$includeToken = IncludeToken::from($includeToken);
} catch (ValueError) {
}

return new static(
$includeToken,
self::getChildElementsFromXML($xml),
self::getAttributesNSFromXML($xml),
);
Expand All @@ -114,13 +97,6 @@ public function toXML(DOMElement $parent = null): DOMElement
{
$e = $this->instantiateParentElement($parent);

if ($this->getIncludeToken() !== null) {
$e->setAttribute(
'IncludeToken',
is_string($this->getIncludeToken()) ? $this->getIncludeToken() : $this->getIncludeToken()->value,
);
}

foreach ($this->getElements() as $elt) {
/** @psalm-var \SimpleSAML\XML\SerializableElementInterface $elt */
$elt->toXML($e);
Expand Down
5 changes: 2 additions & 3 deletions tests/WSSecurity/XML/mssp/RsaTokenTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
use SimpleSAML\WSSecurity\XML\sp_200507\AbstractSpElement;
use SimpleSAML\WSSecurity\XML\sp_200507\AbstractTokenAssertionType;
use SimpleSAML\WSSecurity\XML\sp_200507\IncludeToken;
use SimpleSAML\WSSecurity\XML\sp_200507\IncludeTokenTypeTrait;
use SimpleSAML\XML\Attribute as XMLAttribute;
use SimpleSAML\XML\Chunk;
use SimpleSAML\XML\DOMDocumentFactory;
Expand All @@ -28,7 +27,6 @@
*/
#[Group('mssp')]
#[CoversClass(RsaToken::class)]
#[CoversClass(IncludeTokenTypeTrait::class)]
#[CoversClass(AbstractTokenAssertionType::class)]
#[CoversClass(AbstractSpElement::class)]
final class RsaTokenTest extends TestCase
Expand Down Expand Up @@ -75,11 +73,12 @@ public function testMarshallingEmptyElement(): void
public function testMarshalling(): void
{
$attr = new XMLAttribute(C::NAMESPACE, 'ssp', 'attr1', 'value1');
$includeToken = new XMLAttribute(C::NS_SEC_POLICY_12, 'sp', 'IncludeToken', IncludeToken::Always->value);
$chunk = new Chunk(DOMDocumentFactory::fromString(
'<ssp:Chunk xmlns:ssp="urn:x-simplesamlphp:namespace">some</ssp:Chunk>',
)->documentElement);

$rsaToken = new RsaToken(IncludeToken::Always, [$chunk], [$attr]);
$rsaToken = new RsaToken([$chunk], [$includeToken, $attr]);
$this->assertEquals(
self::$xmlRepresentation->saveXML(self::$xmlRepresentation->documentElement),
strval($rsaToken),
Expand Down
5 changes: 2 additions & 3 deletions tests/WSSecurity/XML/mssp/SslContextTokenTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
use SimpleSAML\WSSecurity\XML\sp_200507\AbstractSpElement;
use SimpleSAML\WSSecurity\XML\sp_200507\AbstractTokenAssertionType;
use SimpleSAML\WSSecurity\XML\sp_200507\IncludeToken;
use SimpleSAML\WSSecurity\XML\sp_200507\IncludeTokenTypeTrait;
use SimpleSAML\XML\Attribute as XMLAttribute;
use SimpleSAML\XML\Chunk;
use SimpleSAML\XML\DOMDocumentFactory;
Expand All @@ -28,7 +27,6 @@
*/
#[Group('mssp')]
#[CoversClass(SslContextToken::class)]
#[CoversClass(IncludeTokenTypeTrait::class)]
#[CoversClass(AbstractTokenAssertionType::class)]
#[CoversClass(AbstractSpElement::class)]
final class SslContextTokenTest extends TestCase
Expand Down Expand Up @@ -75,11 +73,12 @@ public function testMarshallingEmptyElement(): void
public function testMarshalling(): void
{
$attr = new XMLAttribute(C::NAMESPACE, 'ssp', 'attr1', 'value1');
$includeToken = new XMLAttribute(C::NS_SEC_POLICY_12, 'sp', 'IncludeToken', IncludeToken::Always->value);
$chunk = new Chunk(DOMDocumentFactory::fromString(
'<ssp:Chunk xmlns:ssp="urn:x-simplesamlphp:namespace">some</ssp:Chunk>',
)->documentElement);

$sslContextToken = new SslContextToken(IncludeToken::Always, [$chunk], [$attr]);
$sslContextToken = new SslContextToken([$chunk], [$includeToken, $attr]);
$this->assertEquals(
self::$xmlRepresentation->saveXML(self::$xmlRepresentation->documentElement),
strval($sslContextToken),
Expand Down
5 changes: 2 additions & 3 deletions tests/WSSecurity/XML/sp_200507/KerberosTokenTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
use SimpleSAML\WSSecurity\XML\sp_200507\AbstractSpElement;
use SimpleSAML\WSSecurity\XML\sp_200507\AbstractTokenAssertionType;
use SimpleSAML\WSSecurity\XML\sp_200507\IncludeToken;
use SimpleSAML\WSSecurity\XML\sp_200507\IncludeTokenTypeTrait;
use SimpleSAML\WSSecurity\XML\sp_200507\KerberosToken;
use SimpleSAML\XML\Attribute as XMLAttribute;
use SimpleSAML\XML\Chunk;
Expand All @@ -28,7 +27,6 @@
*/
#[Group('sp')]
#[CoversClass(KerberosToken::class)]
#[CoversClass(IncludeTokenTypeTrait::class)]
#[CoversClass(AbstractTokenAssertionType::class)]
#[CoversClass(AbstractSpElement::class)]
final class KerberosTokenTest extends TestCase
Expand Down Expand Up @@ -75,11 +73,12 @@ public function testMarshallingEmptyElement(): void
public function testMarshalling(): void
{
$attr = new XMLAttribute(C::NAMESPACE, 'ssp', 'attr1', 'value1');
$includeToken = new XMLAttribute(C::NS_SEC_POLICY_11, 'sp', 'IncludeToken', IncludeToken::Always->value);
$chunk = new Chunk(DOMDocumentFactory::fromString(
'<ssp:Chunk xmlns:ssp="urn:x-simplesamlphp:namespace">some</ssp:Chunk>',
)->documentElement);

$KerberosToken = new KerberosToken(IncludeToken::Always, [$chunk], [$attr]);
$KerberosToken = new KerberosToken([$chunk], [$includeToken, $attr]);
$this->assertEquals(
self::$xmlRepresentation->saveXML(self::$xmlRepresentation->documentElement),
strval($KerberosToken),
Expand Down
5 changes: 2 additions & 3 deletions tests/WSSecurity/XML/sp_200507/RelTokenTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
use SimpleSAML\WSSecurity\XML\sp_200507\AbstractSpElement;
use SimpleSAML\WSSecurity\XML\sp_200507\AbstractTokenAssertionType;
use SimpleSAML\WSSecurity\XML\sp_200507\IncludeToken;
use SimpleSAML\WSSecurity\XML\sp_200507\IncludeTokenTypeTrait;
use SimpleSAML\WSSecurity\XML\sp_200507\RelToken;
use SimpleSAML\XML\Attribute as XMLAttribute;
use SimpleSAML\XML\Chunk;
Expand All @@ -28,7 +27,6 @@
*/
#[Group('sp')]
#[CoversClass(RelToken::class)]
#[CoversClass(IncludeTokenTypeTrait::class)]
#[CoversClass(AbstractTokenAssertionType::class)]
#[CoversClass(AbstractSpElement::class)]
final class RelTokenTest extends TestCase
Expand Down Expand Up @@ -75,11 +73,12 @@ public function testMarshallingEmptyElement(): void
public function testMarshalling(): void
{
$attr = new XMLAttribute(C::NAMESPACE, 'ssp', 'attr1', 'value1');
$includeToken = new XMLAttribute(C::NS_SEC_POLICY_11, 'sp', 'IncludeToken', IncludeToken::Always->value);
$chunk = new Chunk(DOMDocumentFactory::fromString(
'<ssp:Chunk xmlns:ssp="urn:x-simplesamlphp:namespace">some</ssp:Chunk>',
)->documentElement);

$relToken = new RelToken(IncludeToken::Always, [$chunk], [$attr]);
$relToken = new RelToken([$chunk], [$includeToken, $attr]);
$this->assertEquals(
self::$xmlRepresentation->saveXML(self::$xmlRepresentation->documentElement),
strval($relToken),
Expand Down
5 changes: 2 additions & 3 deletions tests/WSSecurity/XML/sp_200507/SamlTokenTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
use SimpleSAML\WSSecurity\XML\sp_200507\AbstractSpElement;
use SimpleSAML\WSSecurity\XML\sp_200507\AbstractTokenAssertionType;
use SimpleSAML\WSSecurity\XML\sp_200507\IncludeToken;
use SimpleSAML\WSSecurity\XML\sp_200507\IncludeTokenTypeTrait;
use SimpleSAML\WSSecurity\XML\sp_200507\SamlToken;
use SimpleSAML\XML\Attribute as XMLAttribute;
use SimpleSAML\XML\Chunk;
Expand All @@ -28,7 +27,6 @@
*/
#[Group('sp')]
#[CoversClass(SamlToken::class)]
#[CoversClass(IncludeTokenTypeTrait::class)]
#[CoversClass(AbstractTokenAssertionType::class)]
#[CoversClass(AbstractSpElement::class)]
final class SamlTokenTest extends TestCase
Expand Down Expand Up @@ -75,11 +73,12 @@ public function testMarshallingEmptyElement(): void
public function testMarshalling(): void
{
$attr = new XMLAttribute(C::NAMESPACE, 'ssp', 'attr1', 'value1');
$includeToken = new XMLAttribute(C::NS_SEC_POLICY_11, 'sp', 'IncludeToken', IncludeToken::Always->value);
$chunk = new Chunk(DOMDocumentFactory::fromString(
'<ssp:Chunk xmlns:ssp="urn:x-simplesamlphp:namespace">some</ssp:Chunk>',
)->documentElement);

$SamlToken = new SamlToken(IncludeToken::Always, [$chunk], [$attr]);
$SamlToken = new SamlToken([$chunk], [$includeToken, $attr]);
$this->assertEquals(
self::$xmlRepresentation->saveXML(self::$xmlRepresentation->documentElement),
strval($SamlToken),
Expand Down
5 changes: 2 additions & 3 deletions tests/WSSecurity/XML/sp_200507/SecurityContextTokenTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
use SimpleSAML\WSSecurity\XML\sp_200507\AbstractSpElement;
use SimpleSAML\WSSecurity\XML\sp_200507\AbstractTokenAssertionType;
use SimpleSAML\WSSecurity\XML\sp_200507\IncludeToken;
use SimpleSAML\WSSecurity\XML\sp_200507\IncludeTokenTypeTrait;
use SimpleSAML\WSSecurity\XML\sp_200507\SecurityContextToken;
use SimpleSAML\XML\Attribute as XMLAttribute;
use SimpleSAML\XML\Chunk;
Expand All @@ -28,7 +27,6 @@
*/
#[Group('sp')]
#[CoversClass(SecurityContextToken::class)]
#[CoversClass(IncludeTokenTypeTrait::class)]
#[CoversClass(AbstractTokenAssertionType::class)]
#[CoversClass(AbstractSpElement::class)]
final class SecurityContextTokenTest extends TestCase
Expand Down Expand Up @@ -75,11 +73,12 @@ public function testMarshallingEmptyElement(): void
public function testMarshalling(): void
{
$attr = new XMLAttribute(C::NAMESPACE, 'ssp', 'attr1', 'value1');
$includeToken = new XMLAttribute(C::NS_SEC_POLICY_11, 'sp', 'IncludeToken', IncludeToken::Always->value);
$chunk = new Chunk(DOMDocumentFactory::fromString(
'<ssp:Chunk xmlns:ssp="urn:x-simplesamlphp:namespace">some</ssp:Chunk>',
)->documentElement);

$SecurityContextToken = new SecurityContextToken(IncludeToken::Always, [$chunk], [$attr]);
$SecurityContextToken = new SecurityContextToken([$chunk], [$includeToken, $attr]);
$this->assertEquals(
self::$xmlRepresentation->saveXML(self::$xmlRepresentation->documentElement),
strval($SecurityContextToken),
Expand Down
5 changes: 2 additions & 3 deletions tests/WSSecurity/XML/sp_200507/UsernameTokenTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
use SimpleSAML\WSSecurity\XML\sp_200507\AbstractSpElement;
use SimpleSAML\WSSecurity\XML\sp_200507\AbstractTokenAssertionType;
use SimpleSAML\WSSecurity\XML\sp_200507\IncludeToken;
use SimpleSAML\WSSecurity\XML\sp_200507\IncludeTokenTypeTrait;
use SimpleSAML\WSSecurity\XML\sp_200507\UsernameToken;
use SimpleSAML\XML\Attribute as XMLAttribute;
use SimpleSAML\XML\Chunk;
Expand All @@ -28,7 +27,6 @@
*/
#[Group('sp')]
#[CoversClass(UsernameToken::class)]
#[CoversClass(IncludeTokenTypeTrait::class)]
#[CoversClass(AbstractTokenAssertionType::class)]
#[CoversClass(AbstractSpElement::class)]
final class UsernameTokenTest extends TestCase
Expand Down Expand Up @@ -75,11 +73,12 @@ public function testMarshallingEmptyElement(): void
public function testMarshalling(): void
{
$attr = new XMLAttribute(C::NAMESPACE, 'ssp', 'attr1', 'value1');
$includeToken = new XMLAttribute(C::NS_SEC_POLICY_11, 'sp', 'IncludeToken', IncludeToken::Always->value);
$chunk = new Chunk(DOMDocumentFactory::fromString(
'<ssp:Chunk xmlns:ssp="urn:x-simplesamlphp:namespace">some</ssp:Chunk>',
)->documentElement);

$UsernameToken = new UsernameToken(IncludeToken::Always, [$chunk], [$attr]);
$UsernameToken = new UsernameToken([$chunk], [$includeToken, $attr]);
$this->assertEquals(
self::$xmlRepresentation->saveXML(self::$xmlRepresentation->documentElement),
strval($UsernameToken),
Expand Down
5 changes: 2 additions & 3 deletions tests/WSSecurity/XML/sp_200507/X509TokenTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
use SimpleSAML\WSSecurity\XML\sp_200507\AbstractSpElement;
use SimpleSAML\WSSecurity\XML\sp_200507\AbstractTokenAssertionType;
use SimpleSAML\WSSecurity\XML\sp_200507\IncludeToken;
use SimpleSAML\WSSecurity\XML\sp_200507\IncludeTokenTypeTrait;
use SimpleSAML\WSSecurity\XML\sp_200507\X509Token;
use SimpleSAML\XML\Attribute as XMLAttribute;
use SimpleSAML\XML\Chunk;
Expand All @@ -28,7 +27,6 @@
*/
#[Group('sp')]
#[CoversClass(X509Token::class)]
#[CoversClass(IncludeTokenTypeTrait::class)]
#[CoversClass(AbstractTokenAssertionType::class)]
#[CoversClass(AbstractSpElement::class)]
final class X509TokenTest extends TestCase
Expand Down Expand Up @@ -75,11 +73,12 @@ public function testMarshallingEmptyElement(): void
public function testMarshalling(): void
{
$attr = new XMLAttribute(C::NAMESPACE, 'ssp', 'attr1', 'value1');
$includeToken = new XMLAttribute(C::NS_SEC_POLICY_11, 'sp', 'IncludeToken', IncludeToken::Always->value);
$chunk = new Chunk(DOMDocumentFactory::fromString(
'<ssp:Chunk xmlns:ssp="urn:x-simplesamlphp:namespace">some</ssp:Chunk>',
)->documentElement);

$X509Token = new X509Token(IncludeToken::Always, [$chunk], [$attr]);
$X509Token = new X509Token([$chunk], [$includeToken, $attr]);
$this->assertEquals(
self::$xmlRepresentation->saveXML(self::$xmlRepresentation->documentElement),
strval($X509Token),
Expand Down
2 changes: 1 addition & 1 deletion tests/resources/xml/mssp/RsaToken.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<mssp:RsaToken xmlns:mssp="http://schemas.microsoft.com/ws/2005/07/securitypolicy" xmlns:ssp="urn:x-simplesamlphp:namespace" IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Always" ssp:attr1="value1">
<mssp:RsaToken xmlns:mssp="http://schemas.microsoft.com/ws/2005/07/securitypolicy" xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702" xmlns:ssp="urn:x-simplesamlphp:namespace" sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Always" ssp:attr1="value1">
<ssp:Chunk>some</ssp:Chunk>
</mssp:RsaToken>
2 changes: 1 addition & 1 deletion tests/resources/xml/mssp/SslContextToken.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<mssp:SslContextToken xmlns:mssp="http://schemas.microsoft.com/ws/2005/07/securitypolicy" xmlns:ssp="urn:x-simplesamlphp:namespace" IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Always" ssp:attr1="value1">
<mssp:SslContextToken xmlns:mssp="http://schemas.microsoft.com/ws/2005/07/securitypolicy" xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702" xmlns:ssp="urn:x-simplesamlphp:namespace" sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Always" ssp:attr1="value1">
<ssp:Chunk>some</ssp:Chunk>
</mssp:SslContextToken>
2 changes: 1 addition & 1 deletion tests/resources/xml/sp/200507/KerberosToken.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<sp:KerberosToken xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy" xmlns:ssp="urn:x-simplesamlphp:namespace" IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Always" ssp:attr1="value1">
<sp:KerberosToken xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy" xmlns:ssp="urn:x-simplesamlphp:namespace" sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Always" ssp:attr1="value1">
<ssp:Chunk>some</ssp:Chunk>
</sp:KerberosToken>
2 changes: 1 addition & 1 deletion tests/resources/xml/sp/200507/RelToken.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<sp:RelToken xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy" xmlns:ssp="urn:x-simplesamlphp:namespace" IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Always" ssp:attr1="value1">
<sp:RelToken xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy" xmlns:ssp="urn:x-simplesamlphp:namespace" sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Always" ssp:attr1="value1">
<ssp:Chunk>some</ssp:Chunk>
</sp:RelToken>
2 changes: 1 addition & 1 deletion tests/resources/xml/sp/200507/SamlToken.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<sp:SamlToken xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy" xmlns:ssp="urn:x-simplesamlphp:namespace" IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Always" ssp:attr1="value1">
<sp:SamlToken xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy" xmlns:ssp="urn:x-simplesamlphp:namespace" sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Always" ssp:attr1="value1">
<ssp:Chunk>some</ssp:Chunk>
</sp:SamlToken>
2 changes: 1 addition & 1 deletion tests/resources/xml/sp/200507/SecurityContextToken.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<sp:SecurityContextToken xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy" xmlns:ssp="urn:x-simplesamlphp:namespace" IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Always" ssp:attr1="value1">
<sp:SecurityContextToken xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy" xmlns:ssp="urn:x-simplesamlphp:namespace" sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Always" ssp:attr1="value1">
<ssp:Chunk>some</ssp:Chunk>
</sp:SecurityContextToken>
2 changes: 1 addition & 1 deletion tests/resources/xml/sp/200507/UsernameToken.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<sp:UsernameToken xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy" xmlns:ssp="urn:x-simplesamlphp:namespace" IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Always" ssp:attr1="value1">
<sp:UsernameToken xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy" xmlns:ssp="urn:x-simplesamlphp:namespace" sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Always" ssp:attr1="value1">
<ssp:Chunk>some</ssp:Chunk>
</sp:UsernameToken>
2 changes: 1 addition & 1 deletion tests/resources/xml/sp/200507/X509Token.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<sp:X509Token xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy" xmlns:ssp="urn:x-simplesamlphp:namespace" IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Always" ssp:attr1="value1">
<sp:X509Token xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy" xmlns:ssp="urn:x-simplesamlphp:namespace" sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Always" ssp:attr1="value1">
<ssp:Chunk>some</ssp:Chunk>
</sp:X509Token>

0 comments on commit cd68f4d

Please sign in to comment.