Skip to content

Commit

Permalink
Merge pull request #602 from RoSk0/568-follow-up
Browse files Browse the repository at this point in the history
#568 follow up - simplify generating metadata without validUntil
  • Loading branch information
pitbulk authored Dec 6, 2024
2 parents a782c08 + 52b3a7f commit 16566ee
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Saml2/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -879,14 +879,15 @@ public function getIdPSLOResponseUrl()
* $advancedSettings['security']['wantAssertionsEncrypted'] are enabled.
* @param int|null $validUntil Metadata's valid time
* @param int|null $cacheDuration Duration of the cache in seconds
* @param bool $ignoreValidUntil exclude the validUntil tag from metadata
*
* @return string SP metadata (xml)
* @throws Exception
* @throws Error
*/
public function getSPMetadata($alwaysPublishEncryptionCert = false, $validUntil = null, $cacheDuration = null)
public function getSPMetadata($alwaysPublishEncryptionCert = false, $validUntil = null, $cacheDuration = null, $ignoreValidUntil = false)
{
$metadata = Metadata::builder($this->_sp, $this->_security['authnRequestsSigned'], $this->_security['wantAssertionsSigned'], $validUntil, $cacheDuration, $this->getContacts(), $this->getOrganization());
$metadata = Metadata::builder($this->_sp, $this->_security['authnRequestsSigned'], $this->_security['wantAssertionsSigned'], $validUntil, $cacheDuration, $this->getContacts(), $this->getOrganization(), [], $ignoreValidUntil);

$certNew = $this->getSPcertNew();
if (!empty($certNew)) {
Expand Down

0 comments on commit 16566ee

Please sign in to comment.