Working oauth flow with doorkeeper