0

In gRPC C++ library, we can create a channel which based on a composite credentials. For example:

auto call_credentials = grpc::MetadataCredentialsFromPlugin(std::unique_ptr<grpc::MetadataCredentialsPlugin>(
                    new SomeCallCredential()));
auto channel_credentials = grpc::SslCredentials(grpc::SslCredentialsOptions());
auto credentials = grpc::CompositeChannelCredentials(channel_credentials,
                                                             call_creds);

In rust Tonic library, do we have an equivalent method to create a channel with composite credentials?

Reference of C++ implementation:
https://grpc.io/docs/guides/auth/

Jmb
  • 18,893
  • 2
  • 28
  • 55
R.yan
  • 2,214
  • 1
  • 16
  • 33
  • Per-call credentials are [not yet supported](https://github.com/hyperium/tonic/issues/687) in tonic, so I doubt that this is available :( – Thomas Sep 22 '22 at 07:31

0 Answers0