Skip to content

Commit 9ff2184

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

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

packages/google-cloud-datalabeling/src/v1beta1/data_labeling_service_client.ts

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

136+
// Set useJWTAccessWithScope on the auth object.
137+
this.auth.useJWTAccessWithScope = true;
138+
139+
// Set defaultServicePath on the auth object.
140+
this.auth.defaultServicePath = staticMembers.servicePath;
141+
136142
// Set the default scopes in auth client if needed.
137143
if (servicePath === staticMembers.servicePath) {
138144
this.auth.defaultScopes = staticMembers.scopes;
@@ -5816,6 +5822,7 @@ export class DataLabelingServiceClient {
58165822
return this.dataLabelingServiceStub!.then(stub => {
58175823
this._terminated = true;
58185824
stub.close();
5825+
this.operationsClient.close();
58195826
});
58205827
}
58215828
return Promise.resolve();

0 commit comments

Comments
 (0)