From 8e0cd8f3467aff66e75e6cbe474beb35481e3afd Mon Sep 17 00:00:00 2001 From: Tim van Dijen Date: Sun, 1 Sep 2024 00:44:21 +0200 Subject: [PATCH] Fix: Override element name, namespace and prefix --- src/XML/fed/SecurityTokenServiceType.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/XML/fed/SecurityTokenServiceType.php b/src/XML/fed/SecurityTokenServiceType.php index 0841fc1b..963c5d58 100644 --- a/src/XML/fed/SecurityTokenServiceType.php +++ b/src/XML/fed/SecurityTokenServiceType.php @@ -8,6 +8,7 @@ use DOMElement; use SimpleSAML\Assert\Assert; use SimpleSAML\SAML2\Assert\Assert as SAMLAssert; +use SimpleSAML\SAML2\Constants as C; use SimpleSAML\SAML2\XML\md\{ContactPerson, Extensions, KeyDescriptor, Organization}; use SimpleSAML\XML\Exception\InvalidDOMElementException; use SimpleSAML\XML\Exception\TooManyElementsException; @@ -22,6 +23,16 @@ */ final class SecurityTokenServiceType extends AbstractSecurityTokenServiceType { + /** @var string */ + public const NS = C::NS_MD; + + /** @var string */ + public const NS_PREFIX = 'md'; + + /** @var string */ + public const LOCALNAME = 'RoleDescriptor'; + + /** * Convert XML into a SecurityTokenServiceType RoleDescriptor *