Tim Emiola
5cae4f7988
Merge pull request #47 from igrep/patch-1
...
fix typo of a contributor's name
2015-08-10 20:06:44 -07:00
Yuji Yamamoto
7e76b14a68
fix typo of a contributor's name
2015-08-11 11:59:50 +09:00
Tim Emiola
38bd991ac7
Merge pull request #45 from tbetbetbe/ruby-auth-release-0.4.2
...
Ruby auth release 0.4.2
2015-08-06 12:57:36 -07:00
Tim Emiola
2c76946922
Updates the changelog and version
2015-08-06 12:50:23 -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
Tim Emiola
1463e5f5f9
Merge pull request #33 from mr-salty/add-system-default-creds-path
...
Add support for a system default credentials file.
2015-07-10 15:08:19 +02:00
Tim Emiola
4c057404e6
Merge pull request #35 from mr-salty/fix-env-var-test
...
Fix a failing test introduced in #28 .
2015-07-10 14:01:40 +02:00
Tim Emiola
caed076711
Merge pull request #34 from mr-salty/fix-raise-error
...
Fix 'raise_error' WARNINGs.
2015-07-07 15:25:14 +01:00
Tim Emiola
900d74729c
Merge pull request #31 from dwilkie/load_credentials_from_env
...
Fix bug when loading credentials from ENV
2015-07-07 15:24:41 +01:00
Todd Derr
b31df0caaa
Fix rubocop errors (long line wrapping).
2015-06-30 17:47:16 -04:00
Todd Derr
f0de3295fc
Fix some issues discovered by rubocop.
...
fix failures due to:
- misformatting of wrapped lines
- a superflous block (and temp dir creation) due to overzealous cut & paste.
2015-06-30 17:42:30 -04:00
Todd Derr
883fb14147
Fix a failing test introduced in #28 .
...
The environment variables in the 'fails if env vars are set' test
were not actually being set because they used a nonexistent hash key
(which has the effect of unsetting the environment variable).
2015-06-29 17:01:19 -04:00
Todd Derr
c04e91569d
Eliminate a new 'raise_error' WARNING.
...
I have another outstanding PR to fix these; so avoid introducing
another one here.
2015-06-29 16:56:42 -04:00
Todd Derr
60a079a41e
Fix 'raise_error' WARNINGs.
...
rspec spews a warning when using raise_error without a specific error;
add "RuntimeError" to all of these occurrences.
2015-06-29 16:50:55 -04: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
David Wilkie
15fbf92199
Fix bug where loading credentials from ENV doesn't set the credentials in the UserRefreshCredentials
2015-06-26 14:31:09 +07:00
Tim Emiola
dc12124faf
Merge pull request #30 from igrep/relax_multi_json
...
relax the constraint of dependent version of multi_json
2015-06-15 09:23:15 -07:00
Yuji Yamamoto
0e2b722d5b
relax dependent version of multi_json
...
see also: https://github.com/intridea/multi_json/blob/master/CHANGELOG.md#1111
2015-06-15 14:52:18 +09:00
Tim Emiola
11a1a5df16
Merge pull request #28 from haabaato/haabaato/auth-with-env-vars
...
Enables passing credentials via environment variables instead of json file
2015-06-09 10:48:02 -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
133e05cf4a
Merge pull request #24 from tbetbetbe/ruby-auth-add-iam-creds
...
Adds an implementation of IAMCredentials
2015-04-30 14:47:15 -04:00
Tim Emiola
de997c7a7f
Merge pull request #26 from tbetbetbe/ruby-auth-fix-travis
...
Updates .travis.yml to update bundler
2015-04-23 17:11:41 -04:00
Tim Emiola
a6921fef76
Updates .travis.yml to update bundler
2015-04-23 14:02:11 -07:00
Tim Emiola
f557108ad9
Release 0.4.1
2015-04-23 13:17:00 -07:00
Steve Bazyl
b5ff47fecb
Merge pull request #25 from tbetbetbe/ruby-auth-check-404-on-compute
...
Adds more robust checking of the status code during compute engine auth.
2015-04-23 11:49:07 -07:00
Tim Emiola
fe1c46cc14
Corrects grammar
2015-04-23 11:21:31 -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
1560686f3a
Adds an implementation of IAMCredentials
2015-04-22 15:40:56 -07:00
Tim Emiola
2924980b52
Merge pull request #21 from joneslee85/minor-refactoring
...
Minor refactoring
2015-04-14 08:58:47 -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
7e522cfe13
Release 0.4.0
2015-03-25 20:08:14 -07:00
Tim Emiola
ebaca20666
Merge pull request #16 from tbetbetbe/ruby-auth-add-jwt-creds
...
Adds an implementation of JWT signing to ServiceAccountCredentials
2015-03-25 11:20:17 -07:00
Tim Emiola
c4bde552e6
Promote ServiceAccountCredentials when scope is nil
...
- if the ServiceAccountCredentials#apply is called when the scope is not set,
authentication with the equivalent ServiceAccountJwtHeaderCredentials instance
is attempted.
2015-03-23 21:35:07 -07:00
Tim Emiola
53ec6fce3b
Splits the JWTHeader creds into its own class
2015-03-23 20:08:46 -07:00
Tim Emiola
e3e33e2c38
Adds an implementation of JWT signing to ServiceAccountCredentials
2015-03-23 20:08:46 -07:00
Tim Emiola
5124dc2a46
Merge pull request #20 from tbetbetbe/grpc-auth-update-dependencies
...
updates gem dependencies to the latest version
2015-03-23 17:33:59 -07:00
Tim Emiola
48da187d50
Adds a version badge
2015-03-23 16:40:55 -07:00
Tim Emiola
5f4cc99347
updates gem dependencies to the latest version
2015-03-23 16:36:46 -07:00
Tim Emiola
3a516305f1
Merge pull request #17 from tbetbetbe/ruby-auth-make-scopes-optional
...
Ruby auth make scopes optional
2015-03-23 16:32:51 -07:00
Tim Emiola
86435f1913
Adds a CHANGELOG.md
...
- also update CONTRIBUTING.md with more detail
2015-03-23 16:13:42 -07:00
Tim Emiola
395febd0f0
Corrects some comments
2015-03-23 15:27:21 -07:00
Tim Emiola
369b3bfd80
Merge pull request #19 from tbetbetbe/ruby-auth-update-coverage
...
Updates the coverage to use the coveralls gem
2015-03-22 18:43:19 -07:00
Tim Emiola
72fc26dd5f
Update the coverage to use the coveralls gem
2015-03-22 18:31:11 -07:00
Tim Emiola
30b978c7d6
Merge pull request #18 from tbetbetbe/ruby-auth-add-coverage
...
Adds the coverage report and coverage badge
2015-03-22 18:19:25 -07:00
Tim Emiola
84d1e27d15
Adds the coverage report and coverage badge
2015-03-22 18:10:18 -07:00
Tim Emiola
cb46aae999
Bump the version, as optional scopes changes the API.
2015-03-17 16:49:36 -07:00
Tim Emiola
bd97c23d9f
Make the scope optional
2015-03-17 16:46:55 -07:00