Skip to content

Commit 1a10d65

Browse files
author
James Grant
committed
added default digestAlgoritm value
1 parent 8651e12 commit 1a10d65

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

lib/Saml2/Settings.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,11 +384,16 @@ private function _addDefaultValues()
384384
$this->_security['wantXMLValidation'] = true;
385385
}
386386

387-
// Algorithm
387+
// SignatureAlgorithm
388388
if (!isset($this->_security['signatureAlgorithm'])) {
389389
$this->_security['signatureAlgorithm'] = XMLSecurityKey::RSA_SHA1;
390390
}
391391

392+
// DigestAlgorithm
393+
if (!isset($this->_security['digestAlgorithm'])) {
394+
$this->_security['digestAlgorithm'] = XMLSecurityDSig::SHA1;
395+
}
396+
392397
if (!isset($this->_security['lowercaseUrlencoding'])) {
393398
$this->_security['lowercaseUrlencoding'] = false;
394399
}

0 commit comments

Comments
 (0)