diff --git a/CHANGELOG.md b/CHANGELOG.md index 7816c1b..fa93286 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,12 @@ +## 0.9.5 (05/07/2015) + +### Changes + +* Corrects usage of refresh token in jwtclient ([@tbetbetbe][]) +* Adds an implementation of JWT Access authorization ([@tbetbetbe][]) +* Adds getRequestMetadata() to the API surface ([@tbetbetbe][]) +* Adds an implementation of IAM authorization ([@tbetbetbe][]) + ## 0.9.4 (03/04/2015) ### Changes diff --git a/README.md b/README.md index 41953da..68ec6aa 100644 --- a/README.md +++ b/README.md @@ -47,11 +47,13 @@ google.auth.getApplicationDefault(function(err, authClient) { } // Fetch the access token + var _ = require(lodash); var optionalUri = null; // optionally specify the URI being authorized - authClient.getRequestMetadata(optionalUri, function(err, tokens)) { + var reqHeaders = {}; + authClient.getRequestMetadata(optionalUri, function(err, headers)) { if (err === null) { - // Use the auth tokens - var access_token = tokens.access_token; + // Use authorization headers + reqHeaders = _.merge(allHeaders, headers); } }); } diff --git a/package.json b/package.json index abf821b..c962b4a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "google-auth-library", - "version": "0.9.4", + "version": "0.9.5", "author": "Google Inc.", "description": "Google APIs Authentication Client Library for Node.js", "contributors": [