We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0906eac commit 2b0f2ffCopy full SHA for 2b0f2ff
google-cloud-spanner/src/main/java/com/google/cloud/spanner/spi/v1/GapicSpannerRpc.java
@@ -368,6 +368,10 @@ public GapicSpannerRpc(final SpannerOptions options) {
368
boolean isAttemptDirectPathXds = isEnableDirectPathXdsEnv();
369
if (isAttemptDirectPathXds) {
370
defaultChannelProviderBuilder.setAttemptDirectPath(true);
371
+ // This will let the credentials try to fetch a hard-bound access token if the runtime
372
+ // environment supports it.
373
+ defaultChannelProviderBuilder.setAllowHardBoundTokenTypes(
374
+ Collections.singletonList(InstantiatingGrpcChannelProvider.HardBoundTokenTypes.ALTS));
375
defaultChannelProviderBuilder.setAttemptDirectPathXds();
376
}
377
0 commit comments