wasphin opened a new issue #1210:
URL: https://github.com/apache/incubator-brpc/issues/1210


   **Is your feature request related to a problem? (你需要的功能是否与某个问题有关?)**
   
   No.
   
   **Describe the solution you'd like (描述你期望的解决方法)**
   
   When a client connects to the server, the server can verify the request with 
an ``Authenticator``, but with ``Authenticator`` we can only reply an 
unauthorized if something is wrong, this is not enough, we may need to send 
more info to the client.
   
   This is a one time check with the same purpose as ``Authenticator``, to make 
the following requests passed.
   
   **Describe alternatives you've considered (描述你想到的折衷方案)**
   
   The client calls a special method first, the server verifies it,
   1. if success, mark the connection as established, set some custom data to 
the connection, like the ``AuthContext``;
   1. else, close the connection, see #800, which has no reply.
   
   **Additional context/screenshots (更多上下文/截图)**
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to