I am trying to follow this site http://www.ja-sig.org/wiki/display/CAS/Proxy+CAS+Walkthrough to understand the mechanisms involved in writing proxying applications.
I have cas server 3.2.1 set up and up and running fine. When I go through Step One: login, I come out with the following problem For following this test https://foo.bar.com/is/cas/login?service=http://localhost/bling I go https://servername:8443/cas/login?service works! http://servername:8080/servlets-examples works! -->http://servername:8080/servlets-examples/?ticket=ST-6-tDd9cVoiaDtQuge4f1v1-cas But when I combine above https://servername:8443/cas/login?service=http://servername :8080/servlets-examples not works It is throw out an exception like this javax.servlet.ServletException: Unable to validate ProxyTicketValidator [[edu.yale.its.tp.cas.client.ProxyTicketValidator proxyList=[null] [edu.yale.its.tp.cas.client.ServiceTicketValidator casValidateUrl=[https://edwardcwin.wri.wolfram.com:8443/cas/serviceValidate] ticket=[ST-16-aNPbfMTjaFq0FWTte4uW-cas] service=[http%3A%2F%2Fedwardcwin.wri.wolfram.com%3A8080%2Fservlets-examples%2F] errorCode=[INVALID_SERVICE] errorMessage=[ticket 'ST-16-aNPbfMTjaFq0FWTte4uW-cas' does not match supplied service. The original service was 'http://edwardcwin.wri.wolfram.com:8080/servlets-examples' and the supplied service was 'http://edwardcwin.wri.wolfram.com:8080/servlets-examples/'.] renew=false entireResponse=[<cas:serviceResponse xmlns:cas='http://www.yale.edu/tp/cas'> <cas:authenticationFailure code='INVALID_SERVICE'> ticket 'ST-16-aNPbfMTjaFq0FWTte4uW-cas' does not match supplied service. The original service was 'http://edwardcwin.wri.wolfram.com:8080/servlets-examples' and the supplied service was 'http://edwardcwin.wri.wolfram.com:8080/servlets-examples/'. </cas:authenticationFailure> </cas:serviceResponse> When I follow Step Two(a): verify the ticket and be done, I have the following results I follow this https://foo.bar.com/is/cas/serviceValidate?ticket=ST-956-Lyg0BdLkgdrBO9W17bXS&service=http://localhost/bling modify to https://servername.com:8443/cas/serviceValidate?ticket=ST-2-THnlNeVFzhmdbrkZiLvB-cas&service=http://servername:8080/servlets-examples I have the following result from browser <cas:serviceResponse xmlns:cas='http://www.yale.edu/tp/cas'> <cas:authenticationFailure code='INVALID_TICKET'> ticket 'ST-2-THnlNeVFzhmdbrkZiLvB-cas' not recognized </cas:authenticationFailure> </cas:serviceResponse> Can anyone tell me what's wrong and how to fix the setup? Thanks a lot Edward _______________________________________________ Yale CAS mailing list [email protected] http://tp.its.yale.edu/mailman/listinfo/cas
