public interface CallCredentials {}Q2: given the code example in this class (see below), it seems it will carry credential information for rpc calls,
is there a way I can pass the credentials when creating the channel?
FooGrpc.FooStub stub = FooGrpc.newStub(channel);
response = stub.withCallCredentials(creds).bar(request);Q3: how should I plugin the custom authentication/authorization mechanism on gRPC server side?
Thanks a lot!
Himy current project is using gRPC (java) for service communications. We have our own way of authenticate and authorize the client request. Reading from https://grpchQ1: is this the interface that I should implement?public interface CallCredentials {}
Q2: given the code example in this class (see below), it seems it will carry credential information for rpc calls,is there a way I can pass the credentials when creating the channel?FooGrpc.FooStub stub = FooGrpc.newStub(channel);
response = stub.withCallCredentials(creds).bar(request);
Q3: how should I plugin the custom authentication/authorization mechanism on gRPC server side?
Thanks a lot!