Skip to content

Commit

Permalink
Fix class typo and add parameter to constructor
Browse files Browse the repository at this point in the history
Fixed Auth_Simple and Session typo.
Added `$servicename` parameter for custom authsource
  • Loading branch information
salvorapi authored Jan 20, 2022
1 parent d87168d commit ff71ac2
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 @@ -103,7 +103,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 ff71ac2

Please sign in to comment.