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
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas

Reply via email to