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

Commit c12da34

Browse files
feat: turns on self-signed JWT feature flag (#311)
- [ ] 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 79f0609 commit c12da34

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/v1/recaptcha_enterprise_service_client.ts

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

135+
// Set useJWTAccessWithScope on the auth object.
136+
this.auth.useJWTAccessWithScope = true;
137+
138+
// Set defaultServicePath on the auth object.
139+
this.auth.defaultServicePath = staticMembers.servicePath;
140+
135141
// Set the default scopes in auth client if needed.
136142
if (servicePath === staticMembers.servicePath) {
137143
this.auth.defaultScopes = staticMembers.scopes;

src/v1beta1/recaptcha_enterprise_service_v1_beta1_client.ts

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

135+
// Set useJWTAccessWithScope on the auth object.
136+
this.auth.useJWTAccessWithScope = true;
137+
138+
// Set defaultServicePath on the auth object.
139+
this.auth.defaultServicePath = staticMembers.servicePath;
140+
135141
// Set the default scopes in auth client if needed.
136142
if (servicePath === staticMembers.servicePath) {
137143
this.auth.defaultScopes = staticMembers.scopes;

0 commit comments

Comments
 (0)