File tree 2 files changed +12
-0
lines changed
packages/google-cloud-oslogin/src
2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -125,6 +125,12 @@ export class OsLoginServiceClient {
125
125
// Save the auth object to the client, for use by other methods.
126
126
this . auth = this . _gaxGrpc . auth as gax . GoogleAuth ;
127
127
128
+ // Set useJWTAccessWithScope on the auth object.
129
+ this . auth . useJWTAccessWithScope = true ;
130
+
131
+ // Set defaultServicePath on the auth object.
132
+ this . auth . defaultServicePath = staticMembers . servicePath ;
133
+
128
134
// Set the default scopes in auth client if needed.
129
135
if ( servicePath === staticMembers . servicePath ) {
130
136
this . auth . defaultScopes = staticMembers . scopes ;
Original file line number Diff line number Diff line change @@ -125,6 +125,12 @@ export class OsLoginServiceClient {
125
125
// Save the auth object to the client, for use by other methods.
126
126
this . auth = this . _gaxGrpc . auth as gax . GoogleAuth ;
127
127
128
+ // Set useJWTAccessWithScope on the auth object.
129
+ this . auth . useJWTAccessWithScope = true ;
130
+
131
+ // Set defaultServicePath on the auth object.
132
+ this . auth . defaultServicePath = staticMembers . servicePath ;
133
+
128
134
// Set the default scopes in auth client if needed.
129
135
if ( servicePath === staticMembers . servicePath ) {
130
136
this . auth . defaultScopes = staticMembers . scopes ;
You can’t perform that action at this time.
0 commit comments