Results 1 to 5 of 5

Thread: spring security without DelegatingFilterProxy

  1. #1

    Default spring security without DelegatingFilterProxy

    Hi, I am new to spring security. All the examples that I have gone through use DelegatingFilterProxy, so that spring security sits between user and application. Is it possible to let the application decide with what all parameters call spring security. For ex, the controller decides what all actions are associated with the URL and calls security layer to authenticate/authorize and then passes them to business layer.

  2. #2
    Join Date
    Jan 2008
    Posts
    1,826

    Default

    A lot of things can be done in your controller, but protecting resources based upon the URL is much better off in a Filter since it can intercept any request. Can I ask what you are trying to accomplish?
    Rob Winch - @rob_winch
    Spring Security Lead
    Pivotal

  3. #3

    Default

    1. Suppose the actions associated with the URL are not explicit. For ex, a URL request creates object A, but it can be created only if its parent exists and user does not have permission to create parent.
    2. Also, it makes a dependency on URL naming. If there are two applications, one uses REST and other normal strus type URL. If both are trying to do same actions then a common security service can be used to protect both of them.
    3. eventually security would be about allow/deny user from doing some action on protected objects. What if the URL does not give us that information explicitly and we need to do some pre/post processing of URL

  4. #4

    Unhappy Need urgent help

    Can anyone please help me with this question.

  5. #5
    Join Date
    Jan 2008
    Posts
    1,826

    Default

    Quote Originally Posted by dineshpathak View Post
    1. Suppose the actions associated with the URL are not explicit. For ex, a URL request creates object A, but it can be created only if its parent exists and user does not have permission to create parent.

    2. Also, it makes a dependency on URL naming. If there are two applications, one uses REST and other normal strus type URL. If both are trying to do same actions then a common security service can be used to protect both of them.
    3. eventually security would be about allow/deny user from doing some action on protected objects. What if the URL does not give us that information explicitly and we need to do some pre/post processing of URL

    This sounds to me like you may want to take a look at global method security.
    Rob Winch - @rob_winch
    Spring Security Lead
    Pivotal

Posting Permissions

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