Jason Dobry
6921be61e3
Add support for detecting project ID. Fixes #97
2016-10-03 11:30:41 -07:00
Gameleon12
9c852f58c9
Split off array of valid audience unit test
...
Split off array of valid audience unit test into seperate unit test
2016-08-25 08:32:04 +02:00
Gameleon12
6a9ead1260
Updated unit tests to include test for array of valid audiences
2016-08-24 21:18:48 +02:00
Jonathan Porta
785c514970
Handle symlinks to default application credentials
...
When using Kubernetes 1.3 secrets with Node.js the secret volume can be
a symbolic link to the credentials file. Previously, this would throw an
error due to the assertion of lstat.isFile(). This patch adds real path
resolution prior to asserting that filePath points to valid file.
2016-08-04 14:32:44 -06:00
Matt Loring
0d7d51242f
Fix User-Agent header
...
Prevent User-Agent header from growing with each request.
Fixes #83
2016-05-03 21:02:06 +02:00
murgatroid99
8408308735
Fix some lint errors
2016-04-01 11:21:52 -07:00
murgatroid99
5c63fc7e3f
Merge branch 'master' into auth_request_handle_errors
2016-04-01 11:15:47 -07:00
murgatroid99
14009b9fed
Capitalize constructor names everywhere to satisfy linter
2016-04-01 09:42:48 -07:00
murgatroid99
3ce01ec28a
Added test for OAuth2Client#request retry, fixed implementation
2016-03-25 11:00:42 -07:00
Jonathan Wayne Parrott
610ab17ad4
Use full compute metadata DNS name
...
Use the `metadata.google.internal` instead of just `metadata`. This enables Compute Engine auth to work on Kubernetes, Container Engine, and Container-Optimized VMs and setups with custom DNS servers. Otherwise, the DNS lookup for `metadata` will fail.
2015-11-12 10:55:11 -08:00
Mengcheng Duan
f70f73b66d
Accept either "accounts.google.com" or " https://accounts.google.com " as
...
the issuer of the ID token issued by Google.
2015-10-20 16:09:20 -07:00
Ryan Roth
c7faff5670
Updating test to not have 200 status code for error response.
2015-09-04 12:46:21 -04:00
Tim Emiola
a44331e39d
Fixes #36
...
Updates getRequestMetadata invocation to return a value.
- JWTAccess.getRequestMetadata corrected
- OAuth2.getRequestMetadata corrected
- JWT.getRequestMetadata corrected
Also,
- cleans up naming around callbacks where relevant
2015-05-20 13:59:28 -07:00
Tom Spencer
577fbd55ec
Fixed test specs
2015-05-18 12:20:49 +01:00
Tim Emiola
758adcb2f4
Corrects usage of refresh token in jwt client.
...
Fixes #28
2015-05-06 20:25:17 -07:00
Tim Emiola
697baf0da5
Update implementations of getRequestMetadata
2015-05-06 20:01:23 -07:00
Tim Emiola
3df6196885
Rename JWTHeader => JWTAccess
2015-05-04 13:49:05 -07:00
Tim Emiola
f2b1c540fd
Renames IAM => IAMAuth
2015-05-04 13:36:20 -07:00
Tim Cuthbertson
71ad3c8c03
add test for multiple response errorsg
2015-05-04 13:36:20 -07:00
Tim Emiola
2911180c16
Adds an implementation of IAM credentials
2015-05-04 13:36:20 -07:00
Tim Emiola
b94b9fc1c8
Refactor - introduce and use getRequestMetadata.
...
This is a change in direction from the approach so far:
- OAuthClient.refreshAccessToken was very nearly getRequestMetadata as has been
implemented in some other google-auth-library languages.
- rather than modifying getAccessToken and refreshAccessToken and using
getAccessToken as main 'interface' method for the credentials client classes,
it's better to introduce getRequestMetadata that's a slight modification to
refreshAccessToken and use that instead.
- refreshAccessToken is not removed for backwards compatibility, but is
deprecated.
2015-04-23 07:21:57 -07:00
Tim Emiola
686c04e798
Override JWT.refreshAccessToken to delegate to JWTHeader when possible.
...
- overrides refreshAccessToken to delegate to JWTHeader credentials for the
access token when
- no scopes are set
- and the optional uri is provided
2015-04-23 07:00:17 -07:00
Tim Emiola
9268673472
Change refreshAccessToken and getAccessToken to accept a URI.
...
- the URI is the one being authorized
- this is a breaking surface API change
- in this commit, the affected classes do nothing with the URI except pass it
through
2015-04-22 11:38:43 -07:00
Tim Emiola
f47a2a9dcd
refactor: group the tests by method
2015-04-22 10:11:20 -07:00
Tim Emiola
186a0834bd
Refactor: move login ticket tests into their own file
2015-04-21 11:51:40 -07:00
Tim Emiola
d2079c78a1
Adds the JWTHeader credential implementation
2015-04-21 11:51:40 -07:00
MURAKAMI Masahiko
11b1a053f7
Merge branch 'master' into add-url-parameter-to-request-method
2015-04-08 13:42:56 +09:00
Stephen Sawchuk
3bc5296704
update instance email & key properties from gToken
2015-04-02 09:59:37 -04:00
Stephen Sawchuk
54dee6e577
fix failing test
...
https://github.com/google/google-auth-library-nodejs/pull/20\#discussion_r27164584
2015-03-25 16:54:49 -04:00
Stephen Sawchuk
ad6e6bfe22
send raw scopes message to gtoken
...
https://github.com/google/google-auth-library-nodejs/pull/20\#discussion_r27163383
2015-03-25 16:42:50 -04:00
Stephen Sawchuk
845f63d030
switch to gtoken
2015-03-25 16:11:35 -04:00
MURAKAMI Masahiko
fbc012021b
Fix: Add uri property in options for request method.
...
uri or url is required property.
2015-03-24 09:44:52 +09:00
Jason Allor
f9f200c854
Fixed typo
2015-03-09 16:27:01 -07:00
Jason Allor
8775c2a864
Merging in changes from the google-api-nodejs-library repo
2015-03-09 16:06:22 -07:00
murgatroid99
7b0c86bcef
Fixed lint error
2015-02-24 15:21:33 -08:00
murgatroid99
b2cbbefdd8
Fixed async test
2015-02-24 14:33:44 -08:00
murgatroid99
fbf281d848
Fixed error message, changed RefreshClient name
2015-02-24 11:12:17 -08:00
murgatroid99
55859e06cf
Added test of loading refresh token from file in GoogleAuth
2015-02-24 09:49:45 -08:00
murgatroid99
28c8640dd7
Resolved pull request comments
2015-02-24 09:42:58 -08:00
murgatroid99
86df5c09b4
Re-added fromStream to jwtclient
2015-02-24 09:30:12 -08:00
murgatroid99
d17c250cd9
Added User Refresh Token support
2015-02-23 17:09:27 -08:00
jasonall
9b8efae991
Ported Google API auth code from google-api-nodejs-client repo
2015-02-05 18:35:33 -08:00