Skip to content

Commit 71b578d

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

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

packages/google-cloud-texttospeech/src/v1/text_to_speech_client.ts

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

124+
// Set useJWTAccessWithScope on the auth object.
125+
this.auth.useJWTAccessWithScope = true;
126+
127+
// Set defaultServicePath on the auth object.
128+
this.auth.defaultServicePath = staticMembers.servicePath;
129+
124130
// Set the default scopes in auth client if needed.
125131
if (servicePath === staticMembers.servicePath) {
126132
this.auth.defaultScopes = staticMembers.scopes;

packages/google-cloud-texttospeech/src/v1beta1/text_to_speech_client.ts

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

124+
// Set useJWTAccessWithScope on the auth object.
125+
this.auth.useJWTAccessWithScope = true;
126+
127+
// Set defaultServicePath on the auth object.
128+
this.auth.defaultServicePath = staticMembers.servicePath;
129+
124130
// Set the default scopes in auth client if needed.
125131
if (servicePath === staticMembers.servicePath) {
126132
this.auth.defaultScopes = staticMembers.scopes;

0 commit comments

Comments
 (0)