Fried Sausage with Onion Sauce

Ingredients :

300 to 400 grams of sausages (prefer bratwurst)
2 medium sized onions
1 tablespoon of tomato paste
2 teaspoons of flour, mixed with a little cold water to make a paste
1 teaspoon of paprika powder
1/2 teaspoon garlic powder
500 milliliters of beef broth
A little oil for frying
Salt and pepper to taste
Instructions :