Results 1 to 3 of 3

Thread: Any spring tag library to invoke the custom acl voters

  1. #1
    Join Date
    Jul 2005
    Posts
    4

    Default Any spring tag library to invoke the custom acl voters

    We want to decide on UI whether to hide/show some links. But for this we want access decision to be taken using custom ACL voters that we have defined for securing access to methods. Is it possible using Spring taglibs. Something on the lines that on basis of ACCESS_DEIED/ACCESS_GRANTED being returned from the voter we hide/display the link.

    The reason for this requirement is that we cannot exactly use ACL tables to define permissions on domain objects, and that data model is kind of complex.

  2. #2
    Join Date
    Dec 2008
    Location
    New York City
    Posts
    135

    Default

    How are you actually securing the url in the event a user manually types in the url? If it's on your filterchain, a similar approach should work on with the authorize taglib. If the answer is that you're relying on link hiding for security - that isn't secure and you may want to step back and revisit the problem. That said, there's a cool feature in 3.1 that let's the authorize tag accept SPEL allowing you to basically put anything that's in your model into the tag.

  3. #3
    Join Date
    Jul 2005
    Posts
    4

    Default

    Yes, I am using filter chain for url authentication. Let me explain my problem with some example. Take a example of reporting module, In report module all the user will not allowed to view/add/update all the reports. for example user1 will have read only access to the report1 in that case I want my save/update button disabled on UI. Is there any way I can use SPEL for this.

Tags for this Thread

Posting Permissions

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