mirror of
https://github.com/grpc/grpc-node.git
synced 2025-12-08 18:23:54 +00:00
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:
commit
0e332863f5
@ -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