Pascal Aubry wrote:
If I understood well, the PHP client application should be able to
pass the service parameter only, the url parameter only, both or none.
IMO, the only way to do this is to give 4 methods:
* logout()
* logoutWithRedirectService($service)
* logoutWithUrl($url)
* logoutWithRedirectServiceAndUrl($service, $url)
Instead of calling 4 methods how about call one and just take an
associative array as the parameter.
logout() <=> logout()
logoutWithRedirectService($service) <=>
logout(array('service'=>'www.myservicesite.com'))
logoutWithUrl($url) <=> logout(array('url'=>'www.myurlsite.com'))
logoutWithRedirectServiceAndUrl($service, $url) <=>
logout(array('url'=>'http://www.myurlsite.com','service'=>'www.myservicesite.com'))
In the method you can run
if($logoutVal['url']){
$useUrl = TRUE;
$urlVariable = $logoutVal['url'];
}
if($logoutVal['service']){
$useService = TRUE:
$serviceVariable = $logoutVal['service'];
}
Or something like that.
Adam
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas