Preheat the oven to 425℉.
In a 9x13 baking dish, combine the cannellini beans, shallots, garlic cloves, olives, white wine, lemon, oregano, 1 teaspoon salt, 1/2 teaspoon black pepper, and red pepper flakes. Toss until well combined and spread into an even layer.
Pat the chicken thighs dry with a paper towel. Drizzle with olive oil and rub the oil into the chicken so that it is well coated. Nestle the chicken thighs, skin side up, into the beans. Season the skin with the remaining 1 teaspoon salt and 1/2 teaspoon black pepper.
Transfer to the oven and bake until the chicken is cooked through and golden brown, 45 to 50 minutes.
Let cool for 5 to 8 minutes, then garnish with fresh basil, serve, and enjoy!