CAS_Client::getServerServiceValidateURL PHP Method

getServerServiceValidateURL() public method

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