Results 1 to 2 of 2

Thread: Newbie to ageci

  1. #1
    Join Date
    Mar 2007
    Posts
    566

    Default Newbie to ageci

    Hi,

    I have done some reading on the acegi website - uh - looks very complex for a newbie like me

    What I need:

    Somewhat like a SecurityContext where I can ask for the principal and his roles, just like in HttpRequest but as static class so that I can call everywhere:
    SecurityContext.getPrincipal() not being dependend on HttpRequest.

    Another thing would be declarative security based on classes and methods. Just a bit like that what I can do in web.xml with URLs.

    OK, it would not be that difficult to build this myself with ThreadLocal and an Advice but I'm absolutely sure that acegi can do that job already.

    So, where I have to start reading. I little step by step tutorial would be nice

    Thx.

    P.S. I'm using tomcat 5.5. The solution should support tomcat (HTTP-AUTH) but it should not depend on it.

  2. #2
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,425

    Default

    Originally posted here.
    http://forum.springframework.org/sho...d.php?p=109510

    Just to add to what I said earlier. The example is pretty much there. All you need to add is the MethodSecurityInterceptor.
    http://acegisecurity.org/multiprojec...terceptor.html

Posting Permissions

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