掲示板

Unable to validate ProxyTicketValidator

13年前 に ravi kumar dhara によって更新されました。

Unable to validate ProxyTicketValidator

New Member 投稿: 8 参加年月日: 09/10/30 最新の投稿
Hi All

I am trying to access the Proxycallback in CAS and configured web.xml file.
The following are the configuration of web.xml file:


<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://system1:8443/cas-web/login</param-value>
</init-param>
<init-param>
<param-name>edu.yale.its.tp.cas.client.filter.validateUrl</param-name>
<param-value>https://system1:8443/cas-web/proxyValidate</param-value>
</init-param>
<init-param>
<param-name>edu.yale.its.tp.cas.client.filter.serviceUrl</param-name>
<param-value>http://system1:8080/c/portal/login</param-value>
</init-param>
<init-param>
<param-name>edu.yale.its.tp.cas.client.filter.proxyCallbackUrl</param-name>
<param-value>https://system1:8443/c/portal/login/CasProxyServlet</param-value>
</init-param>
<init-param>
<param-name>edu.yale.its.tp.cas.client.filter.wrapRequest</param-name>
<param-value>false</param-value>
</init-param>
<init-param>
<param-name>edu.yale.its.tp.cas.client.filter.renew</param-name>
<param-value>false</param-value>
</init-param>
<init-param>
<param-name>edu.yale.its.tp.cas.client.filter.gateway</param-name>
<param-value>true</param-value>
</init-param>
</filter>


Following are the URL fro my test:

http://system1:8080/web/guest/home(when I click the welcome button and SignIn,
I got redirected to the following CAS site)

I got the following URL :

https://system1:8443/cas-web/login?service=https://system1:8443/c/portal/login

after providing the credentials click on the submit

It need to redirected to the following URL:

https://system1:8443/c/portal/login?ticket=ST-4-EYYsTY4qGBYPCwCgJoQTTNBy4fQeCittG6X-20

and the following exception is thrown:

16:40:10,622 ERROR [CASFilter:380] edu.yale.its.tp.cas.client.CASAuthenticationException: Unable to validate ProxyTicketValidator [[edu.yale.its.tp.cas.client.ProxyTicketValidator proxyList=[null] [edu.yale.its.tp.cas.client.ServiceTicketValidator casValidateUrl=[https://system1:8443/cas-web/proxyValidate] proxyCallbackUrl=[https://system1:8443/c/portal/login/CasProxyServlet] ticket=[ST-4-EYYsTY4qGBYPCwCgJoQTTNBy4fQeCittG6X-20] service=[http%3A%2F%2Fsystem1%3A8080%2Fc%2Fportal%2Flogin] errorCode=[INVALID_SERVICE] errorMessage=[ticket 'ST-4-EYYsTY4qGBYPCwCgJoQTTNBy4fQeCittG6X-20' does not match supplied service] renew=false entireResponse=[<cas:serviceResponse xmlns:cas='http://www.yale.edu/tp/cas'>
<cas:authenticationFailure code='INVALID_SERVICE'>
ticket 'ST-4-EYYsTY4qGBYPCwCgJoQTTNBy4fQeCittG6X-20' does not match supplied service
</cas:authenticationFailure>
</cas:serviceResponse>


Can anybody suggest me how to clear this issue.

Thanks in Advance.
Ravikumar Dhara
13年前 に ravi kumar dhara によって更新されました。

RE: Unable to validate ProxyTicketValidator

New Member 投稿: 8 参加年月日: 09/10/30 最新の投稿
Hi All

Finally I Completed my CAS integration with Liferay 5.1.2 and Liferay 5.2.3.

Modified : CASAutoLogin & CASFilter Java classes according to my requirement.

Thanks For ALL For Guiding me.

Ravikumar Dhara