google/google-api-nodejs-client — pull request #323 by jasonall (2014-11-12 05:57:00+00:00)
Title: Node.js usable auth

(Now with all jslint issues fixed.)

This pull request extends the auth portion of the client library to add the usable auth pattern for service accounts. This allows the user to create a few lines of code which will correctly set up a credential client no matter whether the code is running in GAE, GCE, a managed VM, or on a local dev machine.

See https://developers.google.com/accounts/docs/application-default-credentials for more information about usable auth.

See the examples/default_auth.js file for an example of how usable auth works in Node after this checkin.

All unit tests pass, in addition to many new tests to cover to new code.

Thanks!