Jan 20th, 2009, 03:08 AM
i've read on the ref. docs. that spring security cames with a jdbc interface
in order to manage users, groups, roles etc: JdbcUserDetailsManager.
Now, i would some simple example in order to manage users (UPDATE sample).
I'm using spring-security 2.04.
Any hep will be appreciated.
Jan 20th, 2009, 08:18 AM
Jan 20th, 2009, 10:33 AM
Okay, i reformualte my question:
I've a web app (spring 2.5.6, spring-security 2.0.4, hibernate 3)
I've add some field to my users table (email, address etc) and i write custom userdetailservice in order to mainatin to cache all this user information.
All works, but i now have the need to write (in run time, under some event) o write on users table and update the cached information about users, in order to create an interface for users administration.
I think there is two chances:
1) mapping users table with hibernate and write my own daos and service layers.
2) Use the interfaces that spring-security offers.
The first point is clear, no doubt. About second, anyone can help me???
What is the best way?
Jan 20th, 2009, 04:10 PM
problem solved with JdbcUserDetailsManager.