File tree
Expand file treeCollapse file tree1 file changed
+3
-0
lines changed google-cloud-spanner/src/main/java/com/google/cloud/spanner
Expand file treeCollapse file tree1 file changed
+3
-0
lines changed Original file line number | Diff line number | Diff line change |
---|
|
20 | 20 | import com.google.api.gax.grpc.GrpcInterceptorProvider;
|
21 | 21 | import com.google.api.gax.retrying.RetrySettings;
|
22 | 22 | import com.google.api.gax.rpc.TransportChannelProvider;
|
| 23 | +import com.google.cloud.NoCredentials; |
23 | 24 | import com.google.cloud.ServiceDefaults;
|
24 | 25 | import com.google.cloud.ServiceOptions;
|
25 | 26 | import com.google.cloud.ServiceRpc;
|
@@ -518,6 +519,8 @@ public ManagedChannelBuilder apply(ManagedChannelBuilder builder) {
|
518 | 519 | return builder.usePlaintext();
|
519 | 520 | }
|
520 | 521 | });
|
| 522 | +// As we are using plain text, we should never send any credentials. |
| 523 | +this.setCredentials(NoCredentials.getInstance()); |
521 | 524 | }
|
522 | 525 | return new SpannerOptions(this);
|
523 | 526 | }
|
|
You can’t perform that action at this time.
0 commit comments