Another thing I want to mention is that the clients might not be as friendly as you think, which means that it will not behave as you expected. If the auth failed, the client do not have to "go away", they can still try to send more requests to the server for bad purposes. It will give the application layer more freedom to handle these clients if the application layer has the access to the transport.
On Wednesday, January 24, 2018 at 8:49:47 AM UTC+8, Carl Mastrangelo wrote: > > Generally auth is a per RPC idea, rather than a per connection idea. > Connections are automatically shutdown after some time in the event the > client goes away (say, after failing to auth for instance). > > On Monday, January 22, 2018 at 7:16:53 PM UTC-8, yz wrote: >> >> I am trying to implement some auth mechanism on go gRPC server. When the >> auth failed, ideally, the driver should be able to close the client >> connection. But seems that the ServerStream does not offer an interface to >> do that. Is it possible to do it in golang? >> > -- *Grab is hiring. Learn more at **https://grab.careers <https://grab.careers/>* By communicating with Grab Inc and/or its subsidiaries, associate companies and jointly controlled entities (“Grab Group”), you are deemed to have consented to processing of your personal data as set out in the Privacy Notice which can be viewed at https://grab.com/privacy/ This email contains confidential information and is only for the intended recipient(s). If you are not the intended recipient(s), please do not disseminate, distribute or copy this email and notify Grab Group immediately if you have received this by mistake and delete this email from your system. Email transmission cannot be guaranteed to be secure or error-free as any information therein could be intercepted, corrupted, lost, destroyed, delayed or incomplete, or contain viruses. Grab Group do not accept liability for any errors or omissions in the contents of this email arises as a result of email transmission. All intellectual property rights in this email and attachments therein shall remain vested in Grab Group, unless otherwise provided by law. -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/grpc-io. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/33423dab-dade-4c4d-b176-563a2b8ec670%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
