def do_GET(self):
    url = _urlparse.urlparse(self.path)
    if (url.path.strip('/') == self.server.redirect_path.strip('/')):
        self.send_response(_StatusCodes.OK)
        self.end_headers()
        self.handle_login(dict(_urlparse.parse_qsl(url.query)))
    else:
        self.send_response(_StatusCodes.NOT_FOUND)
def do_GET(self):
    url = _urlparse.urlparse(self.path)
    if (url.path.strip('/') == self.server.redirect_path.strip('/')):
        self.send_response(_StatusCodes.OK)
        self.end_headers()
        self.handle_login(dict(_urlparse.parse_qsl(url.query)))
    else:
        self.send_response(_StatusCodes.NOT_FOUND)