In a large mixing bowl, stir all of the sauce ingredients together until well combined.
Add the beans and onions and toss until well coated.
Transfer to a 2 quart baking dish with lid. If you don't have a lid, cover tightly with tin foil.
Bake for 50 minutes until bubbly and thickened.