Commit Graph

99 Commits

Author SHA1 Message Date
Graham Paye 584ad57d7d
chore: run linkinator on merges to master (#243) 2019-10-11 16:39:41 -07:00
Daniel Azuma 41bb5f13b2
fix: Increase metadata timeout, matching the logic in google-cloud-env 2019-10-08 11:33:03 -07:00
Cera 9c46b3b049 feat: Support an environment variable to suppress Cloud SDK credentials warnings 2019-10-08 10:00:36 -07:00
Abdulrahman Khalil be7599f536 Make the header check case insensitive (#223) 2019-10-07 19:44:54 -07:00
Ling Huang 2cd6af174d fix: Set instance variables at initialization to avoid spamming rake warnings 2019-08-15 18:46:38 -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
Daniel Azuma 464d2650d0 Prepare for v0.10 development 2019-08-05 18:55:27 -07:00
Daniel Azuma c5e5f55bfe
fix: Arity of WebUserAuthorizer#get_credentials should be compatible with base class 2019-07-26 08:19:06 -07:00
Ryan Brushett e85ce29f00 add retry on error for fetch_access_token (#213) 2019-06-10 13:52:45 -07:00
Piotr Usewicz 9e797f13b8 allow specifying custom state key-values (#218) 2019-06-10 11:21:11 -07:00
igorpeshansky f2f83b20bc add verbosity none to gcloud command (#215) 2019-05-15 16:06:10 -07:00
Mike Moore a33a640e61
Credentials: Use methods instead of constants (#212)
Update Credentials to use methods for values that are intended to
be changed by users, replacing constants.
Add Credentials documentation.
2019-05-07 17:56:17 -06:00
Chris Smith 63381e4d9c
Fix Rubocop errors (#214)
* Fix for google-style 0.3.0 change to Style/WordArray.
* Update google-style dependency to 0.3.
2019-05-07 12:13:17 -06:00
Mike Moore f6e8355edd
Credentials Environment Variable Refactor (#211)
* Refactor env var methods
  Have the iteration return for the first match, instead of comparing
  all elements and choosing the first one that matches.
* Combine file and json credentials detection
  Allow an environment variable to contain either a file path
  or JSON to describe the credentials.
  This change matches how these variables are used in Google Cloud.
2019-05-01 15:04:48 -06:00
Daniel Azuma c0f3b70072
Release google-auth-library-ruby 0.8.1 (#207) 2019-03-27 11:46:30 -07:00
igorpeshansky 23f9b5071f Treat empty credentials environment variables as unset. (#205) 2019-03-27 10:55: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
Graham Paye d765472f35
switch gcloud command to IO.popen from backticks (#194) 2019-02-21 14:38:34 -08:00
Daniel Azuma f4db84ea79
Update version and changelog for 0.8.0 release (#188) 2019-01-02 17:00:32 -08:00
Daniel Azuma f0b95e72f9
Support configuration of the connection object used to fetch tokens (#185) 2019-01-02 14:42:42 -08:00
Mike Moore dc8b127549
Remove warning while looking up project_id (#184) 2018-12-27 16:09:51 -07:00
Graham Paye 0d2becbdcd
make load_gcloud_project_id module function (#170) 2018-10-26 12:17:12 -07:00
Graham Paye f0b0c6f8e8
Add project_id instance variable (#167) 2018-10-24 09:23:37 -07:00
Graham Paye 818a031f5a
update version number and changelog (#166) 2018-10-18 12:26:11 -07:00
Matt Sanford 3802390e70 Upgrade Memoist (#165) 2018-10-16 12:08:58 -07:00
Graham Paye 6f6b25ba18
remove ruby version warnings (#161) 2018-08-23 11:55:35 -07:00
Graham Paye b5d73a84a4
Warn on EOL Ruby Versions (#159) 2018-08-20 15:52:23 -07:00
Tadas Tamošauskas e521abd799 Fix auth token revocation (#157) 2018-08-15 12:50:16 -07:00
Graham Paye 9b49da35b6
fix CLIENT_ID_VAR reference in DefaultCredentials (#154)
* fix CLIENT_ID_VAR reference in DefaultCredentials
2018-08-06 15:46:03 -07:00
TheRoyalTnetennba 3dd6c0a6b5 Release v0.6.3 2018-08-02 11:55:24 -07:00
Daniel Azuma d1ba5e95a7
Fix sdk credentials warning (#148) 2018-08-02 09:11:52 -07:00
Graham Paye 41a8297780
remove redunant line (#149) 2018-08-01 18:21:20 -07:00
Thea Flowers af69fc5347 Use new auth URIs (#147) 2018-08-01 13:42:29 -07:00
Graham Paye 5d42d3b4be
Warn when using cloud sdk credentials (#145)
* Issue warning when cloud sdk credentials are used.
2018-07-18 13:54:03 -07:00
Ryan T. Hosford 114ce8a3b9 Avoids redundant class method definition (#107)
- adds module to provide `read_json_key` class method
    to multiple classes
2018-07-13 12:41:10 -07:00
Kazuhiro Serizawa edaa784d3d Avoid memoizing network-related false negatives of GCECredentials.on_gce? (#137) 2018-06-05 15:20:36 -07:00
Daniel Azuma 9232aa3176
Unescape private_key loaded from ENV (#132) 2018-06-05 09:56:48 -07:00
Mike Moore 9f395a2338 Fix Credentials.default bug
If no PATH_ENV_VARS were found Credentials.default would return an empty array.
Update each default lookup method to return nil if no match was found.
Fix call to from_default_paths method, was calling from_default_vars instead.
Add spec coverage for path, json, and default cases.
Add spec coverage for application_default case.
Fix spec coverage to check the return type from calling Credentials.default.
2017-11-10 15:59:34 -07:00
Daniel Azuma 328fed6d63 Bump version and update changelog for 0.6.1 release 2017-10-18 10:43:08 -07:00
Jacob Geiger d728575980 Bump version to 0.6.0 for release 2017-10-17 14:23:50 -07:00
Ernest Landrito c148fc12bb Add simple credentials class. (#122)
* Add simple credentials class

* 1.9.3 fix

* Review fixes

* Move  into it's own file. Cleanup require statements
2017-10-12 09:19:43 -07:00
Heng Xiong 358ef906f7 Fix typo constant 2017-09-18 10:31:47 -07:00
Heng Xiong d022d0a69d Release 0.5.3 2017-07-21 10:46:37 -07:00
Heng Xiong 0dab02dbaa Merge pull request #112 from hxiong388/new-token-uri
Upgrade to new token URI
2017-07-17 11:47:53 -07:00
Heng Xiong f2b5b8ac98 Upgrade to new token URI 2017-07-17 11:14:06 -07:00
Kazuhiro Serizawa 227ba09a7e Fix rubocop cautions 2017-07-14 08:04:35 +09:00
Kazuhiro Serizawa 40f4e166a2 Use retry_with_error in UserRefreshCredentials#revoke! 2017-07-14 07:53:35 +09:00
Kazuhiro Serizawa a1a9387c2b Use retry_with_error in GCECredentials#fetch_access_token 2017-07-14 07:53:35 +09:00
Kazuhiro Serizawa 3014e6ddaf Implement retry_with_faraday_error 2017-07-14 07:53:35 +09:00