Skip to content

Commit 43fb161

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

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

packages/google-cloud-language/src/v1/language_service_client.ts

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

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

packages/google-cloud-language/src/v1beta2/language_service_client.ts

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

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

0 commit comments

Comments
 (0)