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

Commit e61630b

Browse files
feat: turns on self-signed JWT feature flag (#87)
- [ ] 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 3f11200 commit e61630b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/v1beta1/binauthz_management_service_v1_beta1_client.ts

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

141+
// Set useJWTAccessWithScope on the auth object.
142+
this.auth.useJWTAccessWithScope = true;
143+
144+
// Set defaultServicePath on the auth object.
145+
this.auth.defaultServicePath = staticMembers.servicePath;
146+
141147
// Set the default scopes in auth client if needed.
142148
if (servicePath === staticMembers.servicePath) {
143149
this.auth.defaultScopes = staticMembers.scopes;

0 commit comments

Comments
 (0)