https://github.com/hwi/HWIOAuthBundle/pull/179 got merged, checkout how it was done there