Skip to content

Commit 38d248d

Browse files
authored
fix: enable ALTS bound token (for DirectPath) in the grpc channel provider (#2919)
1 parent e7a1021 commit 38d248d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

google-cloud-storage/src/main/java/com/google/cloud/storage/GrpcStorageOptions.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,10 @@ private Tuple<StorageSettings, Opts<UserProject>> resolveSettingsAndOpts() throw
318318
InstantiatingGrpcChannelProvider.newBuilder()
319319
.setEndpoint(endpoint)
320320
.setAllowNonDefaultServiceAccount(true)
321-
.setAttemptDirectPath(attemptDirectPath);
321+
.setAttemptDirectPath(attemptDirectPath)
322+
.setAllowHardBoundTokenTypes(
323+
Collections.singletonList(
324+
InstantiatingGrpcChannelProvider.HardBoundTokenTypes.ALTS));
322325

323326
if (!NoopGrpcInterceptorProvider.INSTANCE.equals(grpcInterceptorProvider)) {
324327
channelProviderBuilder.setInterceptorProvider(grpcInterceptorProvider);

0 commit comments

Comments
 (0)