Config.php in DrupalAuth for SimpleSAMLphp 8
File
src/Config.php
View source
<?php
namespace Drupal\drupalauth4ssp;
use Drupal\Core\Config\ConfigFactoryInterface;
use SimpleSAML\Configuration as SimpleSAMLConfiguration;
use SimpleSAML\Utils\Config as SimpleSAMLConfig;
class Config {
private $cookieName;
private $returnToList;
private $secretSalt;
private $basePath;
public function __construct(ConfigFactoryInterface $config_factory) {
$config = $config_factory
->get('drupalauth4ssp.settings');
$this->cookieName = $config
->get('cookie_name');
$this->returnToList = $config
->get('returnto_list');
$this->secretSalt = SimpleSAMLConfig::getSecretSalt();
$this->basePath = SimpleSAMLConfiguration::getInstance()
->getBasePath();
}
public function getCookieName() {
return $this->cookieName;
}
public function getReturnToList() {
return $this->returnToList;
}
public function getSecretSalt() {
return $this->secretSalt;
}
public function getBasePath() {
return $this->basePath;
}
}