Revision: 1720
Author: olavmrk
Date: Thu Aug 27 06:45:26 2009
Log: Replace use of $config->getValue('secret') with
SimpleSAML_utilities::getSecretSalt().
http://code.google.com/p/simplesamlphp/source/detail?r=1720
Modified:
/trunk/modules/ldapstatus/www/hobbit.php
/trunk/modules/ldapstatus/www/index.php
=======================================
--- /trunk/modules/ldapstatus/www/hobbit.php Thu Aug 27 05:41:50 2009
+++ /trunk/modules/ldapstatus/www/hobbit.php Thu Aug 27 06:45:26 2009
@@ -4,7 +4,7 @@
$config = SimpleSAML_Configuration::getInstance();
$session = SimpleSAML_Session::getInstance();
-$authTokenContactsSP = sha1('ldapstatus:hobbit|' .
$config->getValue('secret'));
+$authTokenContactsSP = sha1('ldapstatus:hobbit|' .
SimpleSAML_Utilities::getSecretSalt());
if (isset($_REQUEST['getToken'])) {
@@ -43,7 +43,7 @@
if (array_key_exists('ignore', $_REQUEST)) $ignore = '&ignore=' .
$_REQUEST['ignore'];
-$secretKey = sha1('ldapstatus|' . $config->getValue('secret') . '|hobbit');
+$secretKey = sha1('ldapstatus|' .
SimpleSAML_Utilities::getSecretSalt() . '|hobbit');
$secretURL = SimpleSAML_Utilities::addURLparameter(
SimpleSAML_Utilities::selfURLNoQuery(), array(
'key' => $secretKey,
=======================================
--- /trunk/modules/ldapstatus/www/index.php Thu Aug 27 05:38:35 2009
+++ /trunk/modules/ldapstatus/www/index.php Thu Aug 27 06:45:26 2009
@@ -18,7 +18,7 @@
}
$orgConfig =
SimpleSAML_Configuration::loadFromArray($orgs[$orgtest], 'org:[' .
$orgtest . ']');
- $secretKey = sha1('ldapstatus|' . $config->getValue('secret') . '|' .
$_REQUEST['orgtest']);
+ $secretKey = sha1('ldapstatus|' .
SimpleSAML_Utilities::getSecretSalt() . '|' . $_REQUEST['orgtest']);
$secretURL = SimpleSAML_Utilities::addURLparameter(
SimpleSAML_Utilities::selfURLNoQuery(), array(
'orgtest' => $_REQUEST['orgtest'],
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"simpleSAMLphp commits" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/simplesamlphp-commits?hl=en
-~----------~----~----~----~------~----~------~--~---