code: protected void successfulAuthentication(Authentication authentication, HttpServletRequest request,
          HttpServletResponse response) throws Exception {
          LOGGER.debug("Authentication succeeded");
          SecurityContextHolder.getContext().setAuthentication(authentication);
          getRememberMeServices().loginSuccess(request, response, authentication);
          vaadinAuthenticationSuccessHandler.onAuthenticationSuccess(authentication);
      }
docs: Called by {@link #login(Authentication, boolean)} upon successful authentication. This implementation will
  update the security context holder, inform the {@code RememberMeServices} and invoke the authentication success
  handler.
  
  @param authentication the authentication token returned by the
  {@link org.springframework.security.authentication.AuthenticationManager}.
  @param request the current request.
  @param response the current response.
  @throws Exception