Skip to content

Commit 0e33286

Browse files
authored
Merge pull request #2060 from murgatroid99/interop_client_auth_token_scope
Add credentials scope in oauth2_auth_token interop test
2 parents 157de1a + 109020e commit 0e33286

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/interop/interop_client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ function getApplicationCreds(scope, callback) {
484484
}
485485

486486
function getOauth2Creds(scope, callback) {
487-
(new GoogleAuth()).getAccessToken().then((token) => {
487+
(new GoogleAuth({scopes: scope})).getAccessToken().then((token) => {
488488
var updateMd = function(service_url, callback) {
489489
var metadata = new grpc.Metadata();
490490
metadata.add('authorization', 'Bearer ' + token);

0 commit comments

Comments
 (0)