* Fix #3091 by empty auth manager. * Fix #3091 by empty auth manager. * Use conditional to solve bean conflict