Removed legacy auth code and exception classes