Skip to content

Commit

Permalink
Merge branch 'master' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
damikael authored Jul 27, 2023
2 parents a76a1dc + 6bc423f commit 76ccaf6
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions setup/sdk/spid-php.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -21,27 +21,27 @@
}

public function getIdPList() {
include("vendor/simplesamlphp/simplesamlphp/metadata/saml20-idp-remote.php");
require_once("vendor/simplesamlphp/simplesamlphp/metadata/saml20-idp-remote.php");
$list = [];
foreach($this->idps as $idp => $entity_id) {
foreach($this->idps as $code => $entity_id) {
array_push($list, array(
'name' => $metadata[$entity_id]['name']['it'],
'entity_id' => $entity_id,
'code' => $idp,
'code' => $code,
'logo_uri' => $metadata[$entity_id]['icon']
));
}
return $list;
}

public function isSPIDEnabled() {
return self::SPID_ENABLED;
}
public function isSPIDEnabled() {
return self::SPID_ENABLED;
}

public function isCIEEnabled() {
return self::CIE_ENABLED;
}
public function isCIEEnabled() {
return self::CIE_ENABLED;
}

public function getIdP() {
return $this->spid_auth->getAuthData('saml:sp:IdP');
Expand Down Expand Up @@ -168,11 +168,11 @@
}
}
}
public function getLogoutURL($returnTo = null) {
return $this->spid_auth->getLogoutURL($returnTo);
}
public function getAttributes() {
return $this->spid_auth->getAttributes();
}
Expand Down Expand Up @@ -531,8 +531,7 @@

return $button_li;
}



public function insertCIEButton($size='default') {
echo "
<div class=\"cie-button\" style=\"width: 280px;\">
Expand Down

0 comments on commit 76ccaf6

Please sign in to comment.