modified version of doorkeeper OAuth gem