I need to authenticate users from database, Spring Security documents don’t tell how to authenticate with hibernate. Is that possible and how can I do that?
I need to authenticate users from database, Spring Security documents don’t tell how to
Share
You have to make your own custom authentication-provider.
Example code:
Service to load Users from Hibernate:
Service to convert your entity to a spring user object:
The namespace-based application-context-security.xml would look something like: