Extract set_auth_info into a processor
Fix bug caused by changing login method
Refactor authentication checking