The error message pretty much nails it. Your CasAuthenticationProvider
is missing a reference to another bean which gives it access to the user information for your application:
<bean id="casAuthProvider" class="org.springframework.security.cas.authentication.CasAuthenticationProvider">
<property name="ticketValidator" ref="ticketValidator"/>
<property name="serviceProperties" ref="serviceProperties"/>
<!-- You are missing this -->
<property name="authenticationUserDetailsService">
<bean
class="org.springframework.security.core.userdetails.UserDetailsByNameServiceWrapper">
<constructor-arg ref="userService" />
</bean>
</property>
</bean>
where userService
is a UserDetailsService
instance. See the CAS Sample application for a working example.