mirror of
https://github.com/grpc/grpc-node.git
synced 2025-12-08 18:23:54 +00:00
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…
x
Reference in New Issue
Block a user