Refactoring Server Authentication Code
Implementing Clientside Authorization