GetRealAuth refactoring finished