Skip to content

Commit 9dbd4b7

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

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

packages/google-cloud-oslogin/src/v1/os_login_service_client.ts

+6
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,12 @@ export class OsLoginServiceClient {
125125
// Save the auth object to the client, for use by other methods.
126126
this.auth = this._gaxGrpc.auth as gax.GoogleAuth;
127127

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+
128134
// Set the default scopes in auth client if needed.
129135
if (servicePath === staticMembers.servicePath) {
130136
this.auth.defaultScopes = staticMembers.scopes;

packages/google-cloud-oslogin/src/v1beta/os_login_service_client.ts

+6
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,12 @@ export class OsLoginServiceClient {
125125
// Save the auth object to the client, for use by other methods.
126126
this.auth = this._gaxGrpc.auth as gax.GoogleAuth;
127127

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+
128134
// Set the default scopes in auth client if needed.
129135
if (servicePath === staticMembers.servicePath) {
130136
this.auth.defaultScopes = staticMembers.scopes;

0 commit comments

Comments
 (0)