Preheat oven to 180C and grease a 20cm round cake tin or line a 12-hole cupcake pan.
Combine kidney beans, water, vanilla, coconut oil and 2 eggs in a food processor, blender or Thermomix. Process for 5 minutes until smooth and aerated.
Add the rest of the ingredients and process for another minute or two, until smooth.
Pour into the tin or divide between the cake tins and bake 20 minutes for the cupcakes or 40 minutes for the cake.
Let cool in the tin for 5 minutes before transferring to a wire rack to cool completely.
Notes
Don't eat this while it's still warm. You will be able to taste the kidney beans when it's warm.