Skip to content

Commit af93528

Browse files
authored
feat(bigtable): enable JWT (#19957)
Fixes: b/457923542
1 parent 38ff9d2 commit af93528

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

bigtable/admin.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ func NewAdminClient(ctx context.Context, project, instance string, opts ...optio
122122
// Need to add scopes for long running operations (for create table & snapshots)
123123
o = append(o, option.WithScopes(cloudresourcemanager.CloudPlatformScope))
124124
o = append(o, internaloption.EnableNewAuthLibrary())
125+
o = append(o, internaloption.EnableJwtWithScope())
125126
o = append(o, opts...)
126127
connPool, err := gtransport.DialPool(ctx, o...)
127128
if err != nil {

bigtable/client.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,8 @@ func NewClientWithConfig(ctx context.Context, project, instance string, config C
143143
// Allow non-default service account in DirectPath.
144144
o = append(o, internaloption.AllowNonDefaultServiceAccount(true))
145145
o = append(o, opts...)
146-
147-
// TODO(b/372244283): Remove after b/358175516 has been fixed
148146
o = append(o, internaloption.EnableNewAuthLibrary())
147+
o = append(o, internaloption.EnableJwtWithScope())
149148

150149
disableRetryInfo := false
151150

0 commit comments

Comments
 (0)