Results 1 to 2 of 2

Thread: Interceptor to get JDBCRealm's user role

  1. #1

    Default Interceptor to get JDBCRealm's user role

    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.

  2. #2
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    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.
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •