BAC-1068: add a backtrace for AuthenticationException