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
f557108ad9
Release 0.4.1
2015-04-23 13:17:00 -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
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
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
395febd0f0
Corrects some comments
2015-03-23 15:27:21 -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
Tim Emiola
7a9dea37f1
Bump version
2015-03-12 14:49:18 -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
3bd8751519
Adds a credential class that supports User Refresh Tokens
2015-03-06 15:46:59 -08:00
Tim Emiola
df56f8af33
Refactoring: move the credentials load into its own class
2015-03-06 15:13:40 -08:00
Tim Emiola
34429f3298
Updates the comment to link to Application Default Credentials
2015-02-24 15:01:11 -08:00
Tim Emiola
21b0a3dead
Ensures that the loaded files are closed
2015-02-24 14:57:12 -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
Tim Emiola
f8fd5fa519
Corrects the rescue clause
2015-02-12 16:58:48 -08:00
Tim Emiola
1492408997
Adds funcs for json key from environment defaults
...
- adds support for path specified by an ENV var
- adds support for loading from a default path
2015-02-12 16:19:08 -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