Skip to content

Commit

Permalink
Add alg namespace constant
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed May 7, 2023
1 parent 0614887 commit fa791c3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/SAML2/Constants.php
Expand Up @@ -237,6 +237,11 @@ class Constants extends \SimpleSAML\XMLSecurity\Constants
*/
public const NAMEID_X509_SUBJECT_NAME = 'urn:oasis:names:tc:SAML:1.1:nameid-format:X509SubjectName';

/**
* The namespace for the SAML 2 metadata Algorithm Support profile
*/
public const NS_ALG = 'urn:oasis:names:tc:SAML:metadata:algsupport';

/**
* The namespace for the ECP protocol.
*/
Expand Down
3 changes: 2 additions & 1 deletion src/SAML2/XML/alg/AbstractAlgElement.php
Expand Up @@ -4,6 +4,7 @@

namespace SimpleSAML\SAML2\XML\alg;

use SAML2\Constants as C;
use SimpleSAML\XML\AbstractElement;

/**
Expand All @@ -14,7 +15,7 @@
abstract class AbstractAlgElement extends AbstractElement
{
/** @var string */
public const NS = 'urn:oasis:names:tc:SAML:metadata:algsupport';
public const NS = C::NS_ALG;

/** @var string */
public const NS_PREFIX = 'alg';
Expand Down

0 comments on commit fa791c3

Please sign in to comment.