Does CAS client 3.1-RC1 work fine?
Scott Battaglia
scott.battaglia at gmail.com
Mon Jan 28 09:37:07 EST 2008
When you construct a self-signed certificate, you must use the host name and
not the IP address.
-Scott
On Jan 28, 2008 2:39 AM, Messi Chan <chencao0524 at gmail.com> wrote:
>
> Hi,guys
> I have seen the docs
> http://www.ja-sig.org/wiki/display/CASC/CAS+Client+for+Java+3.1
> http://www.ja-sig.org/wiki/display/CASC/CAS+Client+for+Java+3.1 . But it
> isn't work! Does anybody test it and successful?
>
> I have 2 machines, one runs CAS Server 3.1.1(https://192.168.101.47:8443),
> the other runs my client application(http://192.168.101.43:8088). When I
> used CAS Client 3.0, it worked fine. But after changing CAS Client 3.1-RC1
> ,
> I received this message:"java.io.IOException: HTTPS hostname wrong:
> should
> be <192.168.101.47>". My cfg file is below:
> ENV:server(jboss4.0.5ga with jdk1.5.0_07) client:(tomcat5.5.16 with
> jdk1.5.0_06)
>
> web.xml
> <display-name>Java CAS Client</display-name>
> <!--
> - Location of the XML file that defines the root
> application context
> - Applied by ContextLoaderListener.
> -->
> <context-param>
> <param-name>contextConfigLocation</param-name>
>
> <param-value>/WEB-INF/securityConfiguration.xml</param-value>
> </context-param>
>
> <filter>
> <filter-name>CAS Authentication Filter</filter-name>
> <filter-class>
>
> org.springframework.web.filter.DelegatingFilterProxy
> </filter-class>
> <init-param>
> <param-name>targetBeanName</param-name>
> <param-value>casAuthenticationFilter</param-value>
> </init-param>
> </filter>
>
> <filter>
> <filter-name>CAS Validation Filter</filter-name>
> <filter-class>
>
> org.springframework.web.filter.DelegatingFilterProxy
> </filter-class>
> <init-param>
> <param-name>targetBeanName</param-name>
> <param-value>casValidationFilter</param-value>
> </init-param>
> </filter>
>
> <filter>
> <filter-name>CAS
> HttpServletRequestWrapperFilter</filter-name>
> <filter-class>
>
> org.jasig.cas.client.util.HttpServletRequestWrapperFilter
> </filter-class>
> </filter>
>
> <filter>
> <filter-name>CAS Assertion Thread Local
> Filter</filter-name>
> <filter-class>
>
> org.jasig.cas.client.util.AssertionThreadLocalFilter
> </filter-class>
> </filter>
>
>
> <filter-mapping>
> <filter-name>CAS Authentication Filter</filter-name>
> <url-pattern>/protected/*</url-pattern>
> </filter-mapping>
>
> <filter-mapping>
> <filter-name>CAS Validation Filter</filter-name>
> <url-pattern>/protected/*</url-pattern>
> </filter-mapping>
>
> <filter-mapping>
> <filter-name>CAS
> HttpServletRequestWrapperFilter</filter-name>
> <url-pattern>/protected/*</url-pattern>
> </filter-mapping>
>
>
> <filter-mapping>
> <filter-name>CAS Assertion Thread Local
> Filter</filter-name>
> <url-pattern>/protected/*</url-pattern>
> </filter-mapping>
>
>
> <listener>
> <listener-class>
>
> org.springframework.web.context.ContextLoaderListener
> </listener-class>
> </listener>
>
>
> <welcome-file-list>
> <welcome-file>index.jsp</welcome-file>
> </welcome-file-list>
>
>
>
> securityConfiguration.xml
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns="http://www.springframework.org/schema/beans"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:tx="http://www.springframework.org/schema/tx"
> xmlns:aop="http://www.springframework.org/schema/aop"
> xmlns:p="http://www.springframework.org/schema/p"
> xsi:schemaLocation="
> http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
> http://www.springframework.org/schema/tx
> http://www.springframework.org/schema/tx/spring-tx-2.0.xsd
> http://www.springframework.org/schema/aop
> http://www.springframework.org/schema/aop/spring-aop-2.0.xsd">
>
> <bean name="casAuthenticationFilter"
> class="
> org.jasig.cas.client.authentication.AuthenticationFilter"
> p:casServerLoginUrl="https://192.168.101.47:8443/cas/login"
> p:renew="false" p:gateway="false"
> p:serverName="http://192.168.101.43:8088" />
>
>
> <bean name="casValidationFilter"
>
> class="
> org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFilter"
> p:redirectAfterValidation="true"
> p:serverName="http://192.168.101.43:8088"
> >
> <property name="ticketValidator">
> <bean
> class="
> org.jasig.cas.client.validation.Cas20ServiceTicketValidator">
> <constructor-arg index="0" value="
> https://192.168.101.47:8443/cas" />
> </bean>
> </property>
> </bean>
> </beans>
>
> Anybody could help me? thx.
> --
> View this message in context:
> http://www.nabble.com/Does-CAS-client-3.1-RC1-work-fine--tp15129222p15129222.html
> Sent from the CAS Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Yale CAS mailing list
> cas at tp.its.yale.edu
> http://tp.its.yale.edu/mailman/listinfo/cas
>
--
-Scott Battaglia
LinkedIn: http://www.linkedin.com/in/scottbattaglia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tp.its.yale.edu/pipermail/cas/attachments/20080128/45c45f52/attachment.html
More information about the cas
mailing list