phpCAS::getServiceURL PHP Method

getServiceURL() public static method

Get the URL that is set as the CAS service parameter.
public static getServiceURL ( ) : string
return string Service Url
    public static function getServiceURL()
    {
        phpCAS::_validateProxyExists();
        return self::$_PHPCAS_CLIENT->getURL();
    }

Usage Example

Beispiel #1
0
function toggle_auth_checked_in_redirect()
{
    $url = phpCAS::getServiceURL();
    $without_auth_checked = removeParameterFromUrl('auth_checked', $url);
    if ($url == $without_auth_checked) {
        $url .= (strpos($url, '?') === false ? '?' : '&') . 'auth_checked=true';
    } else {
        $url = $without_auth_checked;
        debug_msg("removing auth_checked from url to have a clean final url: {$url}");
    }
    phpCAS::setFixedServiceURL($url);
}
All Usage Examples Of phpCAS::getServiceURL