def handle_request(self, req):
req.start_time = time()<EOL>handler = None<EOL>try:<EOL><INDENT>version, account, user, _junk = split_path(req.path_info,<EOL>minsegs=<NUM_LIT:0>, maxsegs=<NUM_LIT:4>, rest_with_last=True)<EOL><DEDENT>except ValueError:<EOL><INDENT>return HTTPNotFound(request=req)<EOL><DEDENT>if version in ('<STR_LIT>', '<STR_LIT>', '<STR_LIT>'):<EOL><INDENT>if req.method == '<STR_LIT:GET>':<EOL><INDENT>handler = self.handle_get_token<EOL><DEDENT><DEDENT>elif version == '<STR_LIT>':<EOL><INDENT>if not self.super_admin_key:<EOL><INDENT>return HTTPNotFound(request=req)<EOL><DEDENT>req.path_info_pop()<EOL>if req.method == '<STR_LIT:GET>':<EOL><INDENT>if not account and not user:<EOL><INDENT>handler = self.handle_get_reseller<EOL><DEDENT>elif account:<EOL><INDENT>if not user:<EOL><INDENT>handler = self.handle_get_account<EOL><DEDENT>elif account == '<STR_LIT>':<EOL><INDENT>req.path_info_pop()<EOL>handler = self.handle_validate_token<EOL><DEDENT>else:<EOL><INDENT>handler = self.handle_get_user<EOL><DEDENT><DEDENT><DEDENT>elif req.method == '<STR_LIT>':<EOL><INDENT>if not user:<EOL><INDENT>handler = self.handle_put_account<EOL><DEDENT>else:<EOL><INDENT>handler = self.handle_put_user<EOL><DEDENT><DEDENT>elif req.method == '<STR_LIT>':<EOL><INDENT>if not user:<EOL><INDENT>handler = self.handle_delete_account<EOL><DEDENT>else:<EOL><INDENT>handler = self.handle_delete_user<EOL><DEDENT><DEDENT>elif req.method == '<STR_LIT:POST>':<EOL><INDENT>if account == '<STR_LIT>':<EOL><INDENT>handler = self.handle_prep<EOL><DEDENT>elif user == '<STR_LIT>':<EOL><INDENT>handler = self.handle_set_services<EOL><DEDENT><DEDENT><DEDENT>else:<EOL><INDENT>handler = self.handle_webadmin<EOL><DEDENT>if not handler:<EOL><INDENT>req.response = HTTPBadRequest(request=req)<EOL><DEDENT>else:<EOL><INDENT>req.response = handler(req)<EOL><DEDENT>return req.response<EOL>
Entry point for auth requests (ones that match the self.auth_prefix).
        Should return a WSGI-style callable (such as swob.Response).

        :param req: swob.Request object