SEC-1100: Add "access-denied-handler-ref" to <security:http> so AccessDeniedHandler can be configurable #1350

Closed
spring-issuemaster opened this Issue Feb 5, 2009 · 2 comments

1 participant

@spring-issuemaster

Daniel Woo (Migrated from SEC-1100) said:

Currently does not allow replacing the AccessDeniedHandler in exceptionTranslationFilter, need to add an attribute reference to the desired AccessDeniedHandler.

@spring-issuemaster

Ryan Holliday said:

This functionality would also be helpful with the JAMWiki project’s Spring Security implementation. Currently the project uses a single user database but has the concept of “virtual” instances such as “/context/instance1/” and “/context/instance2” to simplify management. The different “instances” are primarily used for determining what language to display a page in, but there is additional functionality that makes having separate instances important. With current Spring Security namespace configuation we could specify an “access-denied-page” reference on the http attribute, but that would force all access denied errors to a single page, and we actually need to make sure that users are sent to the appropriate sub-page for whatever “instance” they are on.

@spring-issuemaster

Luke Taylor said:

I've added support for an element, which should be used in preference to the original access-denied-page attribute.

It can take either a reference or an "error-page" attribute:



...

or



...

@spring-issuemaster spring-issuemaster added this to the 3.0.0 M1 milestone Feb 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment