Commit Graph

106 Commits

Author SHA1 Message Date
Tim Emiola a5bb601fe3 Adds an implementation of Application Default Credentials
- supports two initial scenarios
  - 2LO with service accounts
  - Compute Engine

- performs all 3 'sniffs' for the service account credentials
  - from environment
  - from a well known file
  - from GCE
2015-02-12 16:59:08 -08:00
Tim Emiola f8fd5fa519 Corrects the rescue clause 2015-02-12 16:58:48 -08:00
Tim Emiola 1492408997 Adds funcs for json key from environment defaults
- adds support for path specified by an ENV var
- adds support for loading from a default path
2015-02-12 16:19:08 -08:00
Tim Emiola b01737abe2 Adds an explicit short timeout to on_gce?
- uses the current timeout in oauth2client/client.py
- includes the comments from that file as well
2015-02-11 21:03:37 -08:00
Tim Emiola e01b14cba8 Memoizes on_gce?
- also fixes an error in the gemspec.
2015-02-11 20:52:47 -08:00
Tim Emiola 3e60a713c5 Extract the auth library into its own project
- adds no new functionality beyond the initial attempt at providing
  Usable Auth constructors.

- adds enough packaging metadata to be able to export this library as a gem.

- next steps:
  complete usable auth implemntation of Application Default Credentials.
2015-02-11 19:23:34 -08:00