Commit 6b0a1d7
authored
fix(common): create default gRPC credentials only if needed (#10280)
For backwards compatibility with the pre-Unified Credentials world we
were calling `grpc::GoogleDefaultCredentials()` if
`g::c::GrpcCredentialsOption` was not set. In many cases the option is
not set, but `g::c::UnifiedCredentialsOption` is. If that is the case,
the unified options are preferred. Calling
`grpc::GoogleDefaultCredentials()` produces spurious errors, and these
credentials won't be used.1 parent 2cef6b6 commit 6b0a1d7
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
0 commit comments