CAS_Client::_getCallbackURL PHP Method

_getCallbackURL() private method

This method returns the URL that should be used for the PGT callback (in fact the URL of the current request without any CGI parameter, except if phpCAS::setFixedCallbackURL() was used).
private _getCallbackURL ( ) : The
return The callback URL
    private function _getCallbackURL()
    {
        // the URL is built when needed only
        if (empty($this->_callback_url)) {
            $final_uri = '';
            // remove the ticket if present in the URL
            $final_uri = 'https://';
            $final_uri .= $this->_getClientUrl();
            $request_uri = $_SERVER['REQUEST_URI'];
            $request_uri = preg_replace('/\\?.*$/', '', $request_uri);
            $final_uri .= $request_uri;
            $this->_callback_url = $final_uri;
        }
        return $this->_callback_url;
    }
CAS_Client