Commit Graph

20 Commits

Author SHA1 Message Date
Graham Paye 0d25f3a10f
prepare for autorelease (#199) 2019-02-27 08:06:41 -08: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
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
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
Mike Milner 62a8d41bc4 Replace uninitialized constant 2016-01-08 13:17:49 -05:00
Steven Bazyl cdc12a2c08 3LO support round 2 - web support 2015-10-14 14:26:21 -07:00
Steven Bazyl e903a12563 Base version of 3LO support. 2015-10-14 13:54:03 -07:00
Todd Derr 86de5fe13b Add support for a system default credentials file.
The path is:
  - windows: %ProgramData%\Google\Auth\application_default_credentials.json
  - other: /etc/google/auth/application_default_credentials.json
2015-06-29 16:35:45 -04:00
Herbert Siojo 5061fb5add Enables reading credentials from env vars.
- ServiceAccountCredentials, ServiceAccountJwtHeaderCredentials
and UserRefreshCredentials initializers now take keyword args
via options hash.

- In `credentials_loader.rb`, refactored env var checking into
private methods

- Updated tests & added new tests.

- Fixed existing test for #from_well_known_path 'fails if
the file is invalid', where `from_env` was called instead of
`from_well_known_path`.

- Fixed rubocop errors I introduced, but two existing ones remain.

- Added entry to changelog.

- Fixed rubocop errors from code containing parallel assignments

- Updated rubocop_todo.yml to ignore parallel assignments and
trailing underscore assignments.
2015-05-21 13:38:19 -07:00
Trung Lê 66ae035cce More refactoring to please rubocop 2015-04-08 11:10:25 +10:00
Trung Lê 377c679586 Refactor Google::Auth#get_application_default 2015-04-08 11:05:42 +10:00
Trung Lê 13bb435cf8 Refactor Google::Auth.determine_creds_class to use case statements 2015-04-08 10:53:27 +10:00
Tim Emiola 395febd0f0 Corrects some comments 2015-03-23 15:27:21 -07:00
Tim Emiola bd97c23d9f Make the scope optional 2015-03-17 16:46:55 -07:00
Tim Emiola 8f33ba8f4c Explicitly checks for user auth and fail if auth type is not known 2015-03-09 09:50:18 -07:00
Tim Emiola 4d4bcd46e8 Add support for loading either credentials type as determined by the loaded content 2015-03-06 16:58:57 -08:00
Tim Emiola 34429f3298 Updates the comment to link to Application Default Credentials 2015-02-24 15:01:11 -08:00
Tim Emiola 7adcf42958 Renamed the error vars 2015-02-17 18:43:00 -08:00
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