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/