--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+u...@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/ef26c07e-f013-4664-9cc5-8c51df478468%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thanks Julien for the detailed reply.
Yes, I am using C++. I will try the first option now till the cleaner solution is in. BTW I have few more clarifications required. Please confirm.
1) I assume the channel should be created with InsecureCredentials with just the metadata added in it.
2) I assume the authentication check will be per call basis and will not be one-time when the connection happens with the server. Is there a way to do it only once?
1) I assume the channel should be created with InsecureCredentials with just the metadata added in it.Please use the SSL Credentials and not the InsecureCredentials. Otherwise, your channel will be completely unprotected: the traffic will be in the clear and anybody listening on the network will have access to the username/password. This would be very bad....
2) I assume the authentication check will be per call basis and will not be one-time when the connection happens with the server. Is there a way to do it only once?Right. If you add the metadata for every call on the client, it will be received for every call on the server even with one connection (just like HTTP basic auth BTW). However, your server logic can be smart and cache the verification so that you don't have to hit your password DB for every single call. Note that on the server-side you cannot discriminate between connections because the ServerContext does not give you access to this information.
I need similar sort of username/password support Vivek is asking for .Is the solution 2 , you are referring in the above discussion is available now in grpc or will take little more time?
- Thanks
Shikha