Cédric a écrit :
> MMS21 a écrit :
>> Hi,
>>      I configured CAS on server machine and login into the cas window.
>> Authenticated the user and Log into th CAS successfully. I have given a link
>> a link in a page to call a client progam in another server, and I want the
>> user should be asllowed to access the clint program without being
>> authenticated again, of course which a feature of CAS. When I connect to my
>> client program  which is Casified, it gives me Exception as below
>>
>> javax.servlet.ServletException: Connection refused: connect
>>
> 
> Hi,
> 
> I'm trying to use CAS Filter too.
> 
> My web.xml looks okay :
> 
> <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://cas.knowmore.fr/cas/login</param-value>
> </init-param>
> <init-param>
>  
> <param-name>edu.yale.its.tp.cas.client.filter.validateUrl</param-name> 
> 
>    <param-value>https://cas.knowmore.fr/cas/serviceValidate</param-value>
> </init-param>
> <init-param>
>    <param-name>edu.yale.its.tp.cas.client.filter.serverName</param-name>
>    <param-value>cas.knowmore.fr</param-value>
> </init-param>
> <init-param>
>    <param-name>edu.yale.its.tp.cas.client.filter.serviceUrl</param-name>
>    <param-value>http://localhost:8080</param-value>
> </init-param>
> 
> </filter>
> 
> 
> <filter-mapping>
>    <filter-name>CAS Filter</filter-name>
>    <url-pattern>/*</url-pattern>
> </filter-mapping>
> 
> 
> Well, I go to the page I want to CASified. I'm redirected to the log 
> screen. I log myself, and then I see the page "You're correctly 
> logged.". But I hoped that I would have been redirected to the 
> serviceUrl (http://localhost:8080) !
> 
> Moreover, there is a javascript error in the page "you're correctly 
> logged." {document.forms[1] has no properties}
> The error is in the commun.js which try to focus on an inexistant field...
> 
> What should I do to make the redirection working ?
> 
> Thanks for your future answers,
> 
> P.S. : I used the casclient.jar library from cas-client-java-2.1.1 and 
> then from cas-client-2.0.11 with the same result.
> 

Correction :

My web.xml 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://cas.knowmore.fr/cas/login</param-value>
</init-param>
<init-param>
   <param-name>edu.yale.its.tp.cas.client.filter.validateUrl</param-name>
   <param-value>https://cas.knowmore.fr/cas/serviceValidate</param-value>
</init-param>
<init-param>
    <param-name>edu.yale.its.tp.cas.client.filter.serviceUrl</param-name>
    <param-value>http://localhost:8080</param-value>
</init-param>

</filter>


<filter-mapping>
    <filter-name>CAS Filter</filter-name>
    <url-pattern>/*</url-pattern>
</filter-mapping>

Thanks,

-- 
Cédric Puig

_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas

Reply via email to