Skip to content

Commit 59acb2f

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

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/google-api-servicemanagement/src/v1/service_manager_client.ts

+7
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,12 @@ export class ServiceManagerClient {
132132
// Save the auth object to the client, for use by other methods.
133133
this.auth = this._gaxGrpc.auth as gax.GoogleAuth;
134134

135+
// Set useJWTAccessWithScope on the auth object.
136+
this.auth.useJWTAccessWithScope = true;
137+
138+
// Set defaultServicePath on the auth object.
139+
this.auth.defaultServicePath = staticMembers.servicePath;
140+
135141
// Set the default scopes in auth client if needed.
136142
if (servicePath === staticMembers.servicePath) {
137143
this.auth.defaultScopes = staticMembers.scopes;
@@ -2669,6 +2675,7 @@ export class ServiceManagerClient {
26692675
return this.serviceManagerStub!.then(stub => {
26702676
this._terminated = true;
26712677
stub.close();
2678+
this.operationsClient.close();
26722679
});
26732680
}
26742681
return Promise.resolve();

0 commit comments

Comments
 (0)