successful oauth2 api authentication using query parameters in mocha requests