From 109020ef02a443a76ad109a9cd520b49fca3e8af Mon Sep 17 00:00:00 2001 From: Michael Lumish Date: Tue, 15 Mar 2022 12:07:11 -0700 Subject: [PATCH] Add credentials scope in oauth2_auth_token interop test --- test/interop/interop_client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/interop/interop_client.js b/test/interop/interop_client.js index d7df128d..57f4f184 100644 --- a/test/interop/interop_client.js +++ b/test/interop/interop_client.js @@ -484,7 +484,7 @@ function getApplicationCreds(scope, callback) { } function getOauth2Creds(scope, callback) { - (new GoogleAuth()).getAccessToken().then((token) => { + (new GoogleAuth({scopes: scope})).getAccessToken().then((token) => { var updateMd = function(service_url, callback) { var metadata = new grpc.Metadata(); metadata.add('authorization', 'Bearer ' + token);