From eec87c597f197812aaf75870d4b36a9247119309 Mon Sep 17 00:00:00 2001 From: Amandeep Date: Sat, 26 Mar 2016 12:09:08 -0400 Subject: [PATCH] getDelegationToken fails since grant_type is not being passed along Pass grant_type from incoming data to the token manager's getDelegationToken method; otherwise this method fails. --- src/auth/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/auth/index.js b/src/auth/index.js index 002f07b50..19e7b2cf7 100644 --- a/src/auth/index.js +++ b/src/auth/index.js @@ -352,7 +352,8 @@ AuthenticationClient.prototype.getDelegationToken = function (data, cb) { id_token: data.id_token, api_type: data.api || data.api_type, scope: data.scope, - target: data.targetClientId || data.target + target: data.targetClientId || data.target, + grant_type: data.grant_type }; return this.tokens.getDelegationToken(translatedData, cb);