
Originally Posted by
erikvaningen
Congratulations!
We are very happy with the active developments around Spring Security.
A question: I would like to integrate Spring Security into my Spring-JPA(Hibernate) application. At the moment the daoAuthenticationProviderfor is not based on JPA or Hibernate.
You can still use daoAuthenticationProvider and do your own implementation of UserDetailsService and UserDetails to accomplish this.
This is how I did the configuration in applicationContext.xml:
Code:
<bean id="authenticationProvider" class="org.springframework.security.providers.dao.DaoAuthenticationProvider">
<property name="userDetailsService" ref="userDetailsService"/>
</bean>
<bean id="userDetailsService" class="se.xxx.invoice.UserDetailsServiceImpl">
<property name="invoiceService" ref="invoiceService"/>
</bean>
invoiceService is of course the dao service object