mirror of https://github.com/grpc/grpc-node.git
Add credentials scope in oauth2_auth_token interop test
This commit is contained in:
parent
157de1a0a9
commit
109020ef02
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue