Skip to content

Commit 9b09da1

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

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/google-devtools-artifactregistry/src/v1beta2/artifact_registry_client.ts

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

148+
// Set useJWTAccessWithScope on the auth object.
149+
this.auth.useJWTAccessWithScope = true;
150+
151+
// Set defaultServicePath on the auth object.
152+
this.auth.defaultServicePath = staticMembers.servicePath;
153+
148154
// Set the default scopes in auth client if needed.
149155
if (servicePath === staticMembers.servicePath) {
150156
this.auth.defaultScopes = staticMembers.scopes;
@@ -3332,6 +3338,7 @@ export class ArtifactRegistryClient {
33323338
return this.artifactRegistryStub!.then(stub => {
33333339
this._terminated = true;
33343340
stub.close();
3341+
this.operationsClient.close();
33353342
});
33363343
}
33373344
return Promise.resolve();

0 commit comments

Comments
 (0)