Block user based on username and git operation

Hi,

I am developing a plugin to block ssh users based on the username and git operations. Unfortunately, SshAuthenticationHandler does not provide a handle on the git operation.

So I tried using the SshAuthenticationSuccessHandler interface which provides a handle on both user and git command but the return type of method is void. I tried throwing exceptions like NoAccessAuthenticationException, AuthorizationException but nothing blocks the user operation.

Thanks