Skip to content

Commit 7c2eb26

Browse files
committed
Use API instead of raw config.
1 parent 475264c commit 7c2eb26

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/ConfigHelper.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace SimpleSAML\Module\drupalauth;
44

55
use SimpleSAML\Configuration;
6+
use SimpleSAML\Utils\Config;
67

78
/**
89
* Drupal authentication source configuration parser.
@@ -91,9 +92,8 @@ public function __construct($config, $location)
9192
$this->drupal_logout_url = $config->getString('drupal_logout_url', null);
9293
$this->drupal_login_url = $config->getString('drupal_login_url', null);
9394

94-
$ssp_config = Configuration::getInstance();
95-
$this->cookie_path = '/' . $ssp_config->getString('baseurlpath');
96-
$this->cookie_salt = $ssp_config->getString('secretsalt');
95+
$this->cookie_path = Configuration::getInstance()->getBasePath();
96+
$this->cookie_salt = Config::getSecretSalt();
9797
}
9898

9999

0 commit comments

Comments
 (0)