PDA

View Full Version : Interceptor to get JDBCRealm's user role



Rapthor
Mar 29th, 2006, 04:30 AM
Hello,

is it possible to wrap an interceptor (I hope that's the correct tool for that) around every controller that first checks wether the user in the current session is allowed to start that controller?

I'm using "JDBCRealm" for authentication measures and ask myself if I have access to the information about the user logged in from within the interceptor.

Thanks in advance.

Costin Leau
Mar 29th, 2006, 04:45 AM
Yes, you can do that. take a look at acegi (acegi.sf.net) which provides a lot of security features including ACL at method level.