Skip to content

Commit 45c9757

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

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

packages/google-cloud-webrisk/src/v1/web_risk_service_client.ts

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

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

packages/google-cloud-webrisk/src/v1beta1/web_risk_service_v1_beta1_client.ts

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

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

0 commit comments

Comments
 (0)