Skip to content

Commit 41a4428

Browse files
feat: turns on self-signed JWT feature flag (#31)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 392067151 Source-Link: googleapis/googleapis@06345f7 Source-Link: googleapis/googleapis-gen@95882b3
1 parent 631b79f commit 41a4428

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/google-cloud-vpc-access/src/v1/vpc_access_service_client.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,12 @@ export class VpcAccessServiceClient {
135135
// Save the auth object to the client, for use by other methods.
136136
this.auth = this._gaxGrpc.auth as gax.GoogleAuth;
137137

138+
// Set useJWTAccessWithScope on the auth object.
139+
this.auth.useJWTAccessWithScope = true;
140+
141+
// Set defaultServicePath on the auth object.
142+
this.auth.defaultServicePath = staticMembers.servicePath;
143+
138144
// Set the default scopes in auth client if needed.
139145
if (servicePath === staticMembers.servicePath) {
140146
this.auth.defaultScopes = staticMembers.scopes;
@@ -1028,6 +1034,7 @@ export class VpcAccessServiceClient {
10281034
return this.vpcAccessServiceStub!.then(stub => {
10291035
this._terminated = true;
10301036
stub.close();
1037+
this.operationsClient.close();
10311038
});
10321039
}
10331040
return Promise.resolve();

0 commit comments

Comments
 (0)