-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Node.js usable auth #323
Node.js usable auth #323
Conversation
…ogleapis rather than auth
There are many styling and code org issues, but we should initially focus on the public APIs. A doc that explains the public APIs and some snippets that would illustrate the usage would be nice to begin with. The implementation will follow. |
* Determines whether the current operating system is Windows. | ||
* @api private | ||
* */ | ||
GoogleCredentials.prototype._isWindows = function() { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
…wrappers to the GoogleCredentials class
This PR requires significant rework and design improvements. I'm closing this PR. |
(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!