Interface SshAuthenticationSuccessHandler


public interface SshAuthenticationSuccessHandler
Handler that is called when a user successfully authenticates with the system over SSH. The system will call onAuthenticationSuccess(SshAuthenticationSuccessContext) on all installed ssh-auth-success-handler modules in order of their configured weight.

All ssh-auth-success-handler callbacks will be made in the context of the SSH command requested but will take place before the command is resolved to an ScmRequest and before it is handled.

  • Method Details

    • onAuthenticationSuccess

      void onAuthenticationSuccess(@Nonnull SshAuthenticationSuccessContext context)
      Callback method that is called by the system on authentication success over SSH. The authenticated user can be retrieved through SshAuthenticationSuccessContext.getUser().
      Parameters:
      context - a context object holding authentication details and authenticated user.