7 Commits

Author SHA1 Message Date
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
murgatroid99
14009b9fed Capitalize constructor names everywhere to satisfy linter 2016-04-01 09:42:48 -07: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
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
jasonall
9b8efae991 Ported Google API auth code from google-api-nodejs-client repo 2015-02-05 18:35:33 -08:00