Separated ILS authentication logic from Auth\Manager.