Add credentials scope in oauth2_auth_token interop test

This commit is contained in:
Michael Lumish 2022-03-15 12:07:11 -07:00
parent 157de1a0a9
commit 109020ef02
1 changed files with 1 additions and 1 deletions

View File

@ -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);