Commit Graph

17 Commits

Author SHA1 Message Date
murgatroid99
3ce01ec28a Added test for OAuth2Client#request retry, fixed implementation 2016-03-25 11:00:42 -07:00
murgatroid99
2b5ebfc85c Make Oauth2Client#request retry on auth errors as documented 2016-03-24 17:27:05 -07:00
yamafaktory
01164b56fe Fixed returned toString encoding of OAuth2Client.prototype.decodeBase64 method. 2015-11-12 09:14:41 +01: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
Reibl János Dániel
20eebb5169 Update oauth2client.js
Fix typo in jsDoc.
2015-07-21 09:33:17 +02: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
Tim Emiola
697baf0da5 Update implementations of getRequestMetadata 2015-05-06 20:01:23 -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
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
Jason Allor
6dc4341292 Fixed lint issues 2015-02-23 11:07:10 -08:00
Jason Allor
febc27b2e4 Fix issues affecting Google Node.js V1 client 2015-02-23 10:54:31 -08:00
murgatroid99
4a3aaab3f0 Removed extra blank line 2015-02-17 11:44:38 -08:00
murgatroid99
e362410c04 Added missing return statement 2015-02-17 11:42:10 -08:00
murgatroid99
c775c5edbf Updated OAuth2Client#request to use getAccessToken 2015-02-17 11:15:07 -08:00
murgatroid99
fc4591b768 Add a function to get the access token, refreshing if necessary 2015-02-17 11:06:58 -08:00
jasonall
4e938f18cf Addressed code review feedback 2015-02-06 11:33:05 -08:00
jasonall
9b8efae991 Ported Google API auth code from google-api-nodejs-client repo 2015-02-05 18:35:33 -08:00