Skip to content
This repository was archived by the owner on Jul 20, 2023. It is now read-only.

Commit c278f63

Browse files
feat: turns on self-signed JWT feature flag (#34)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 392067151 Source-Link: googleapis/googleapis@06345f7 Source-Link: https://github.com/googleapis/googleapis-gen/commit/95882b37970e41e4cd51b22fa507cfd46dc7c4b6
1 parent 95d64b0 commit c278f63

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/v1beta1/private_catalog_client.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,12 @@ export class PrivateCatalogClient {
151151
// Save the auth object to the client, for use by other methods.
152152
this.auth = this._gaxGrpc.auth as gax.GoogleAuth;
153153

154+
// Set useJWTAccessWithScope on the auth object.
155+
this.auth.useJWTAccessWithScope = true;
156+
157+
// Set defaultServicePath on the auth object.
158+
this.auth.defaultServicePath = staticMembers.servicePath;
159+
154160
// Set the default scopes in auth client if needed.
155161
if (servicePath === staticMembers.servicePath) {
156162
this.auth.defaultScopes = staticMembers.scopes;

0 commit comments

Comments
 (0)