Mince soybeans with a fine cutter.
Cook together the tomatoes, thyme, bay leaf.
onion, sugar and seasoning until reduced by half, then rub through a sieve.
Stir in the flour and oil, and add to the beans.
Put into cans, cover with tight-fitting lid, and boil or steam for 3 hours.