Skip to content

Commit

Permalink
Merge pull request #149 from salvorapi/master
Browse files Browse the repository at this point in the history
Fix class typo and add parameter to constructor
  • Loading branch information
damikael authored Jan 22, 2022
2 parents b6dfd98 + ff71ac2 commit b8dca76
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions setup/sdk/spid-php.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
private $idps = array();
private $purpose = null;
function __construct($production=false) {
$this->spid_auth = new SimpleSAML_Auth_Simple('service');
function __construct($production=false, $servicename='service') {
$this->spid_auth = new SimpleSAML\Auth\Simple($servicename);
$this->production = $production;
{{IDPS}}
Expand Down Expand Up @@ -105,7 +105,7 @@
if($saml_logout) {
$this->spid_auth->logout($returnTo);
} else {
$session = SimpleSAML_Session::getSessionFromRequest();
$session = SimpleSAML\Session::getSessionFromRequest();
if ($session->isValid('service')) {
$session->doLogout('service');
}
Expand Down

0 comments on commit b8dca76

Please sign in to comment.