public static function getIdpsForSp(
        $spEntityId,
        $metadataPath
    ) {
        $idpEntries = Metadata::getIdpMetadataEntries($metadataPath);

        return self::getReducedIdpList(
            $idpEntries,
            $metadataPath,
            $spEntityId);
    }