CAS_Client::getServerProxyValidateURL PHP Method

getServerProxyValidateURL() public method

This method is used to retrieve the proxy validating URL of the CAS server.
public getServerProxyValidateURL ( ) : string
return string proxyValidate URL.
    public function getServerProxyValidateURL()
    {
        phpCAS::traceBegin();
        // the URL is build only when needed
        if (empty($this->_server['proxy_validate_url'])) {
            switch ($this->getServerVersion()) {
                case CAS_VERSION_1_0:
                    $this->_server['proxy_validate_url'] = '';
                    break;
                case CAS_VERSION_2_0:
                    $this->_server['proxy_validate_url'] = $this->_getServerBaseURL() . 'proxyValidate';
                    break;
                case CAS_VERSION_3_0:
                    $this->_server['proxy_validate_url'] = $this->_getServerBaseURL() . 'p3/proxyValidate';
                    break;
            }
        }
        $url = $this->_buildQueryUrl($this->_server['proxy_validate_url'], 'service=' . urlencode($this->getURL()));
        phpCAS::traceEnd($url);
        return $url;
    }
CAS_Client