From 77d50539b5848a41318cc62693ec58f44aa149cb Mon Sep 17 00:00:00 2001 From: Tim Emiola Date: Thu, 7 May 2015 10:46:07 -0700 Subject: [PATCH] Update for release --- CHANGELOG.md | 9 +++++++++ README.md | 8 +++++--- package.json | 2 +- 3 files changed, 15 insertions(+), 4 deletions(-) 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": [