Why are you using both the Spring Security AND the cas authentication/validation filters. Take a look at the Spring Security documentation on how to configure CAS with Spring Security.
-Scott -Scott Battaglia PGP Public Key Id: 0x383733AA LinkedIn: http://www.linkedin.com/in/scottbattaglia On Tue, Jul 22, 2008 at 12:19 PM, SMallik <[EMAIL PROTECTED]> wrote: > > Hi All, > I am using CAS 3.2.1 , Cas client 3.1.1 and Spring Security 2.0.3 and > QueryDatabaseAuthenticationHandler. > My SSOn functionality is working fine but SSOut functionality is not > working > at all. It can only log me out of the application from which I have > initiated the logout and not from other applications. Also when I am trying > to access secured page I am getting the following error: > 10:45:02,212 DEBUG ExceptionTranslationFilter,http-8443-Processor24:150 - > Authentication exception occurred; redirecting to authentication entry > point > org.springframework.security.AuthenticationCredentialsNotFoundException: An > Authentication object was not found in the SecurityContext . > Though this error is not breaking the flow. > > Following is the cas log : > > 2008-07-22 10:44:44,066 INFO > [org.jasig.cas.web.flow.AuthenticationViaFormAction] - FormObjectClass not > set. Using default class of > org.jasig.cas.authentication.principal.UsernamePasswordCredentials with > formObjectName credentials and validator > org.jasig.cas.validation.UsernamePasswordCredentialsValidator. > 2008-07-22 10:45:02,373 INFO > [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] - > Starting cleaning of expired tickets from ticket registry at [Tue Jul 22 > 10:45:02 CDT 2008] > 2008-07-22 10:45:02,373 INFO > [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] - 0 > found to be removed. Removing now. > 2008-07-22 10:45:02,373 INFO > [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] - > Finished cleaning of expired tickets from ticket registry at [Tue Jul 22 > 10:45:02 CDT 2008] > 2008-07-22 10:45:02,903 INFO > [org.jasig.cas.web.flow.InitialFlowSetupAction] > - Setting path for cookies to: /cas > 2008-07-22 10:45:12,627 INFO > [org.jasig.cas.authentication.AuthenticationManagerImpl] - > AuthenticationHandler: > org.jasig.cas.adaptors.jdbc.QueryDatabaseAuthenticationHandler successfully > authenticated the user which provided the following credentials: Shailendra > 2008-07-22 10:45:12,647 INFO > [org.jasig.cas.CentralAuthenticationServiceImpl] - Granted service ticket > [ST-1-WMIqnDl9IF1ULIFOOwPK-cas] for service > [https://testcas:8443/caswithacegi/j_spring_cas_security_check] for user > [Shailendra] > 2008-07-22 10:45:13,369 INFO > [org.jasig.cas.CentralAuthenticationServiceImpl] - Granted service ticket > [ST-2-zgJWMxdWteBzsUH6Zzqe-cas] for service > [https://testcas:8443/caswithacegi/secured/securepage.jsp] for user > [Shailendra] > 2008-07-22 10:45:13,449 INFO > [org.jasig.cas.authentication.AuthenticationManagerImpl] - > AuthenticationHandler: > > org.jasig.cas.authentication.handler.support.HttpBasedServiceCredentialsAuthenticationHandler > successfully authenticated the user which provided the following > credentials: https://testcas:8443/caswithacegi/proxyCallback . > > Please help me out. I have been trying to achieve SSOut since long but no > luck till now. I am attaching here all the config files. Please let me know > if I have to do anything extra to achieve SSOut. > > Spring Security Config : > http://www.nabble.com/file/p18593123/acegi-config.xml acegi-config.xml , > http://www.nabble.com/file/p18593123/deployerConfigContext.xml > deployerConfigContext.xml , > http://www.nabble.com/file/p18593123/securityContext.xmlsecurityContext.xml > , > http://www.nabble.com/file/p18593123/web.xml web.xml , > application log : > http://www.nabble.com/file/p18593123/caswithacegi_log4j.log > caswithacegi_log4j.log > -- > View this message in context: > http://www.nabble.com/Authentication-exception-%2B-SSOut-problem-tp18593123p18593123.html > Sent from the CAS Users mailing list archive at Nabble.com. > > _______________________________________________ > Yale CAS mailing list > [email protected] > http://tp.its.yale.edu/mailman/listinfo/cas >
_______________________________________________ Yale CAS mailing list [email protected] http://tp.its.yale.edu/mailman/listinfo/cas
