season chicken legs with salt and pepper on both sides and nestle into a 1 1/2 -qt. baking dish. arrange shallots, garlic, and 6 thyme sprigs around chicken and pour oil over. bake until chicken is cooked through and tender and shallots and garlic have started to caramelize, 2-2 1/2 hours.