Pour the beans through a sieve and rinse with water. Cut the onion into fine strips and dice the tomatoes without the seeds. Cut the basil into strips. Mix everything together.
Mix the oil, vinegar and the spices and pour over the salad. Mix well and let steep for at least half an hour.