def METHOD_NAME(self, query):
    """
    Perform the redirect to the CAS server.
    :rtype : Response
    :param query: All query parameters to be added to the return_to URL
    after successful authentication.
    :return: A redirect response to the CAS server.
    """
    try:
        req = parse_qs(query)
        acr: Optional[str] = req["acr_values"][0]
    except KeyError:
        acr = None
    nonce = uuid.uuid4().urn.encode()
    service_url = urlencode({self.CONST_SERVICE: self.get_service_url(nonce, acr)})
    cas_url = self.cas_server + self.CONST_CASLOGIN + service_url
    cookie = self.create_cookie(
        '{"'
        + self.CONST_NONCE
        + '": "'
        + base64.b64encode(nonce).decode()
        + '", "'
        + self.CONST_QUERY
        + '": "'
        + base64.b64encode(query).decode()
        + '"}',
        self.CONST_CAS_COOKIE,
        self.CONST_CAS_COOKIE,
    )
    return SeeOther(cas_url, headers=[cookie])