Does Cas client 2.1.1 support logout request?
Sunder Singh Negi
sunder.singh at nechclst.in
Fri Sep 5 01:19:36 EDT 2008
Hi All,
I have been using cas as a sso solution.
I am using CAS Server 3.2.1 and Cas client 2.1.1 and phpCAS 1.0.0.
I have a tomcat based webapp1 casified with the cas client and a phpCAS
casified webapp2.
I login to the webapp1 through CAS. It is working fine.
I login to webapp2 without the cas login. Since Single Sign On is
working fine.
Then in another tab in the same browser window i browsed to
https://localhost:8443/cas/logout.
I access webapp2 it redirects me to cas login. Fine. As expected.
I expected the same for webapp1. But it didn't happen. I can access it
as if still login to to cas.
I viewed the cas log and found
sending logout request to http://localhost:8080/webapp1
sending logout request to http://localhost:8080/webapp2
I have phpCAS::handleLogoutRequests() in my webapp2 cas login script.
I wanted to know whether cas client 2.1.1 supports same feature.
Am i missing something.
My CAS filter for webapp1 is
<filter>
<filter-name>CAS Filter</filter-name>
<filter-class>edu.yale.its.tp.cas.client.filter.CASFilter</filter-class>
<init-param>
<param-name>edu.yale.its.tp.cas.client.filter.loginUrl</param-name>
<param-value>https://localhost:8443/cas/login</param-value>
</init-param>
<init-param>
<param-name>edu.yale.its.tp.cas.client.filter.validateUrl</param-name>
<param-value>https://localhost:8443/cas/serviceValidate</param-value>
</init-param>
<init-param>
<param-name>edu.yale.its.tp.cas.client.filter.serverName</param-name>
<param-value>localhost:8080</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>CAS Filter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
Cas login script for the webapp2 is
include_once('./CAS.php');
phpCAS::setDebug();
phpCAS::client(CAS_VERSION_2_0, "localhost", 8443, "/cas");
phpCAS::setNoCasServerValidation();
phpCAS::handleLogoutRequests(false,false);
phpCAS::forceAuthentication();
Please give some ideas on this.
Thanks
Sunder Singh Negi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tp.its.yale.edu/pipermail/cas/attachments/20080905/cd2a515c/attachment.html
More information about the cas
mailing list