private function configureCasClient()
    {
        $method = !$this->config['cas_proxy'] ? 'client' : 'proxy';
        // Last argument of method (proxy or client) is $changeSessionID. It is true by default. It means it will
        // override the framework's session_id. This allows for Single Sign Out. And it means that there is no point
        // in using the framework's session and authentication objects. If CAS destroys the session, it will destroy it
        // for everyone and you only need to deal with one session.
        phpCAS::$method(
            !$this->config['cas_saml'] ? CAS_VERSION_2_0 : SAML_VERSION_1_1,
            $this->config['cas_hostname'],
            (integer) $this->config['cas_port'],
            $this->config['cas_uri']
        );
    }