Skip to content
Snippets Groups Projects
Commit 34cc8fb3 authored by Jaime Perez Crespo's avatar Jaime Perez Crespo
Browse files

Refactor SimpleSAML_XHTML_IdPDisco::filter() to filterList(), and extend in...

Refactor SimpleSAML_XHTML_IdPDisco::filter() to filterList(), and extend in sspmod_discopower_PowerIdPDisco.
parent 7ee08509
No related branches found
No related tags found
No related merge requests found
......@@ -493,7 +493,7 @@ class SimpleSAML_XHTML_IdPDisco
*
* @return array An associative array containing metadata for the IdPs that were not filtered out.
*/
protected function filter($list)
protected function filterList($list)
{
foreach ($list as $entity => $metadata) {
if (array_key_exists('hide.from.discovery', $metadata) && $metadata['hide.from.discovery'] === true) {
......@@ -542,7 +542,7 @@ class SimpleSAML_XHTML_IdPDisco
// no choice made. Show discovery service page
$idpList = $this->getIdPList();
$idpList = $this->filter($idpList);
$idpList = $this->filterList($idpList);
$preferredIdP = $this->getRecommendedIdP();
$idpintersection = array_intersect(array_keys($idpList), $this->getScopedIDPList());
......
......@@ -144,6 +144,7 @@ class sspmod_discopower_PowerIdPDisco extends SimpleSAML_XHTML_IdPDisco {
}
protected function filterList($list) {
parent::filterList($list);
try {
$spmd = $this->metadata->getMetaData($this->spEntityId, 'saml20-sp-remote');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment