Users of CAS client 3.1-RC1
Rick Robinson
rick at oyarsa.com
Tue Jan 8 19:49:54 EST 2008
For those of you having the horrid time of using/integrating the CAS 3.1-RC1
client because of the completely incorrect documentation.I took a half hour
and worked on a very abbreviated configuration (security-context.xml) for
non-proxied users to be able to get stated with.
It assumes the same values for properties (athough only a couple of them are
used in the sample below) and the same web.xml filter configuration as the
incorrect doc has.
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd">
<bean id="propertyPlaceholderConfigurer"
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigure
r">
<property name="location" value="/WEB-INF/cas-client.properties"/>
</bean>
<bean id="ticketValidator"
class="org.jasig.cas.client.validation.Cas20ServiceTicketValidator">
<constructor-arg index="0" value="${cas.server.url}"/>
</bean>
<bean id="casValidationFilter"
class="org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFi
lter">
<property name="ticketValidator" ref="ticketValidator"/>
<property name="serverName" value="${cas.client.serverName}"/>
</bean>
<bean id="casAuthenticationFilter"
class="org.jasig.cas.client.authentication.AuthenticationFilter">
<property name="serverName" value="${cas.client.serverName}"/>
<property name="casServerLoginUrl" value="${cas.server.url}login"/>
</bean>
</beans>
Best regards,
R
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tp.its.yale.edu/pipermail/cas/attachments/20080108/7f72950c/attachment.html
More information about the cas
mailing list