Skip to content
Permalink
Browse files
feat: turns on self-signed JWT feature flag (#713)
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 392067151

Source-Link: googleapis/googleapis@06345f7

Source-Link: googleapis/googleapis-gen@95882b3
  • Loading branch information
gcf-owl-bot committed Aug 23, 2021
1 parent 499a5c4 commit 41062a675ae8bb19d921b5612ae325383d219725
Showing with 14 additions and 0 deletions.
  1. +7 −0 src/v3/translation_service_client.ts
  2. +7 −0 src/v3beta1/translation_service_client.ts
@@ -133,6 +133,12 @@ export class TranslationServiceClient {
// Save the auth object to the client, for use by other methods.
this.auth = this._gaxGrpc.auth as gax.GoogleAuth;

// Set useJWTAccessWithScope on the auth object.
this.auth.useJWTAccessWithScope = true;

// Set defaultServicePath on the auth object.
this.auth.defaultServicePath = staticMembers.servicePath;

// Set the default scopes in auth client if needed.
if (servicePath === staticMembers.servicePath) {
this.auth.defaultScopes = staticMembers.scopes;
@@ -1666,6 +1672,7 @@ export class TranslationServiceClient {
return this.translationServiceStub!.then(stub => {
this._terminated = true;
stub.close();
this.operationsClient.close();
});
}
return Promise.resolve();
@@ -133,6 +133,12 @@ export class TranslationServiceClient {
// Save the auth object to the client, for use by other methods.
this.auth = this._gaxGrpc.auth as gax.GoogleAuth;

// Set useJWTAccessWithScope on the auth object.
this.auth.useJWTAccessWithScope = true;

// Set defaultServicePath on the auth object.
this.auth.defaultServicePath = staticMembers.servicePath;

// Set the default scopes in auth client if needed.
if (servicePath === staticMembers.servicePath) {
this.auth.defaultScopes = staticMembers.scopes;
@@ -2085,6 +2091,7 @@ export class TranslationServiceClient {
return this.translationServiceStub!.then(stub => {
this._terminated = true;
stub.close();
this.operationsClient.close();
});
}
return Promise.resolve();

0 comments on commit 41062a6

Please sign in to comment.