Skip to content

Commit

Permalink
Fix: Override element name, namespace and prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Aug 31, 2024
1 parent bfee974 commit 8e0cd8f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/XML/fed/SecurityTokenServiceType.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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
*
Expand Down

0 comments on commit 8e0cd8f

Please sign in to comment.