Skip to content

Commit 0a92eb8

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

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

packages/google-cloud-bigquery-reservation/src/v1/reservation_service_client.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,12 @@ export class ReservationServiceClient {
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;

0 commit comments

Comments
 (0)