Commit Graph

16 Commits

Author SHA1 Message Date
Daniel Azuma 41bb5f13b2
fix: Increase metadata timeout, matching the logic in google-cloud-env 2019-10-08 11:33:03 -07:00
Abdulrahman Khalil be7599f536 Make the header check case insensitive (#223) 2019-10-07 19:44:54 -07:00
Spring_MT efb9b7897a fix: Pass "Metadata-Flavor" header to metadata server when checking for GCE 2019-08-13 10:28:08 -07:00
Graham Paye bf822910fa
add google-style and refactor (#203) 2019-03-15 12:34:54 -07:00
Graham Paye 0d25f3a10f
prepare for autorelease (#199) 2019-02-27 08:06:41 -08:00
Daniel Azuma f0b95e72f9
Support configuration of the connection object used to fetch tokens (#185) 2019-01-02 14:42:42 -08:00
Matt Sanford 3802390e70 Upgrade Memoist (#165) 2018-10-16 12:08:58 -07:00
Kazuhiro Serizawa 227ba09a7e Fix rubocop cautions 2017-07-14 08:04:35 +09:00
Kazuhiro Serizawa a1a9387c2b Use retry_with_error in GCECredentials#fetch_access_token 2017-07-14 07:53:35 +09:00
nicholas shook 82a4f8520c added ruby 2.3 compatability
also:

* updated rubocop and applied styling
* made small test refactorings (using the expect block notation)
* made a small refactor to remove an unnecessary ``return credentials``
* bumped the version
2016-07-13 15:45:46 -07:00
Tim Emiola 194128d220 Updates conditional logic to use a case clause 2015-04-23 11:19:16 -07:00
Tim Emiola 98816f7b67 Adds more robust checking of the status code during compute engine auth.
Currently the implementation does not verify that a 200 response is received
before attempting to parse the JSON response.

This PR updates the behaviour to fail with an authorization error, similar to
how other auth library implementations.
2015-04-23 09:50:11 -07:00
Tim Emiola f8fd5fa519 Corrects the rescue clause 2015-02-12 16:58:48 -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