You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by GitBox <gi...@apache.org> on 2020/08/20 09:32:01 UTC

[GitHub] [incubator-brpc] wasphin commented on issue #1210: Support to customize the response of the very first request.

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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org