GetRealAuth refactoring