Heating and acceleration of electrons through the whistler precursor in 1-D and 2-D oblique shocks