Commit Graph

8 Commits

Author SHA1 Message Date
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
Tim Emiola 19b32b47d8 Fixes styles issues before releasing
- also update .travis.yml to use new infrastructure
2015-08-06 12:50:23 -07: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
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 e3e33e2c38 Adds an implementation of JWT signing to ServiceAccountCredentials 2015-03-23 20:08:46 -07:00
Tim Emiola 82ae8a21a9 Add rubocop config files 2015-02-25 04:47:12 -08:00