Rewrote the authentication handler. AGAIN.