Skip to content

Commit d4b1323

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

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/google-cloud-orgpolicy/src/v2/org_policy_client.ts

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

153+
// Set useJWTAccessWithScope on the auth object.
154+
this.auth.useJWTAccessWithScope = true;
155+
156+
// Set defaultServicePath on the auth object.
157+
this.auth.defaultServicePath = staticMembers.servicePath;
158+
153159
// Set the default scopes in auth client if needed.
154160
if (servicePath === staticMembers.servicePath) {
155161
this.auth.defaultScopes = staticMembers.scopes;

0 commit comments

Comments
 (0)