I am using CAS authentication in one of my applications. CAS version jar is – cas-client-core-3.1.10.jar. While using my correct credentials it gives me the following exception –
org.jasig.cas.client.validation.TicketValidationException: No valid assertions from the SAML response found.
org.jasig.cas.client.validation.TicketValidationException: No valid assertions from the SAML response found.
at org.jasig.cas.client.validation.Saml11TicketValidator.parseResponseFromServer(Saml11TicketValidator.java:97)
at org.jasig.cas.client.validation.AbstractUrlBasedTicketValidator.validate(AbstractUrlBasedTicketValidator.java:188)
Wondering what is the reason for this exception? While checking for the source of the Saml11TicketValidator.java I did not see the exact scenario in which this error message comes.
Any idea what this message indicates?
I got the solution to this problem. The actual problem was with the clock speed on my system. My system’s current timestamp didn’t fall between the BEFORE & AFTER timestamps from CAS. And the value of configurable parameter – ‘tolerance’ (provided by CAS) did not help either. So I configured tolerance parameter to a HUGE long value (i.e. 75000). By this I was able to bypass the TicketValidationException thrown by CAS.