public static function getIdentities($idpEntityId, $spEntityId)
{
assert('is_string($idpEntityId)');
assert('is_string($spEntityId)');
$store = self::getStore();
$params = array('_idp' => $idpEntityId, '_sp' => $spEntityId);
$query = 'SELECT _user, _value FROM ' . $store->prefix . '_saml_PersistentNameID WHERE _idp = :_idp AND _sp = :_sp';
$query = $store->pdo->prepare($query);
$query->execute($params);
$res = array();
while (($row = $query->fetch(PDO::FETCH_ASSOC)) !== FALSE) {
$res[$row['_user']] = $row['_value'];
}
return $res;
}