We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 330d97b commit d4b1323Copy full SHA for d4b1323
packages/google-cloud-orgpolicy/src/v2/org_policy_client.ts
@@ -150,6 +150,12 @@ export class OrgPolicyClient {
150
// Save the auth object to the client, for use by other methods.
151
this.auth = this._gaxGrpc.auth as gax.GoogleAuth;
152
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
159
// Set the default scopes in auth client if needed.
160
if (servicePath === staticMembers.servicePath) {
161
this.auth.defaultScopes = staticMembers.scopes;
0 commit comments