wasphin commented on issue #1210:
URL: https://github.com/apache/incubator-brpc/issues/1210#issuecomment-677489379


   When the server receives the first request(e.g. login) from the client, it 
needs to check whether the client is allowed to log in or not. We need to do 
some customized check, e.g.:
   1. the username and password, which can be handled in `Authenticator`;
   1. the IP address, which has been passed to `Authenticator`, but if an IP is 
blocked, the server should report that back to the client, so the client knew 
it has been blocked;
   
   This is just a very simple scenario, the check process may be different.
   
   We need to customize the process of requests, there may be two kinds of RPC 
requests:
   1. the *login* request, do not need to authenticate, itself is some kinds of 
an Authenticator;
   1. other requests, which are not allowed to be called if the *login* has not 
been successfully called.
   


----------------------------------------------------------------
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