Customizing CasClient used by acegi security

Scott Battaglia scott.battaglia at gmail.com
Thu Nov 6 16:49:51 EST 2008


 <bean class="org.springframework.security.userdetails.User" />

That is not a UserDetailsService.  You'll need to utilize one of the
ones provided by Spring Security or write your own that conforms to
the UserDetailsService interface.  Have you looked at the
documentation and the sample provided in the SVN?

-Scott
-Scott Battaglia
PGP Public Key Id: 0x383733AA
LinkedIn: http://www.linkedin.com/in/scottbattaglia



On Thu, Nov 6, 2008 at 4:22 PM, Robert Lewis <r.lewis at tamu.edu> wrote:
> Hi,
>
> An update, now I see that bean casAuthoritiesPopulator is not needed,
> but I can't figure out what the bean casAuthenticationProvider needs
> to get initialized. What I have configured is below. I get a deployment
> error message of the following. "Invocation of init method failed;
> nested exception is java.lang.IllegalArgumentException: A
> userDetailsService must be set"
>
> Any help would be appreciated.
>
>
>
> <bean id="casAuthenticationManager"
> class="org.springframework.security.providers.ProviderManager">
>                <property name="providers">
>                    <list>
>                      <ref bean="casAuthenticationProvider"/>
>                    </list>
>                </property>
>        </bean>
>
>        <bean id="casAuthenticationProvider"
> class="org.springframework.security.providers.cas.CasAuthenticationProvider">
>                <property name="userDetailsService">
>                        <list>
>                                <bean class="org.springframework.security.userdetails.User" />
>                        </list>
>                </property>
>        </bean>
>
>
>
> Robert Lewis wrote:
>>
>> So, I have been trying to follow up on this advice and I have run into
>> an obstacle I need help with.  When I upgrade to Spring Security 2 I see
>> the bean casAuthoritiesPopulator in securityContext.xml is still needed,
>> but the class DaoCasAuthoritiesPopulator does not seem to be available
>> in Spring Security 2. So, what do I replace it with? Do I have to write
>> a class that returns a UserDetailsService ?
>>
>>
>> Thanks,
>>
>> Robert Lewis
>>
>
> _______________________________________________
> Yale CAS mailing list
> cas at tp.its.yale.edu
> http://tp.its.yale.edu/mailman/listinfo/cas
>



More information about the cas mailing list