Merge pull request #2060 from murgatroid99/interop_client_auth_token_scope

Add credentials scope in oauth2_auth_token interop test
This commit is contained in:
Michael Lumish 2022-03-15 13:26:47 -07:00 committed by GitHub
commit 0e332863f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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