Announcement Announcement Module
Collapse
No announcement yet.
Display message when anonymous user tries to access unauthorised page Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Display message when anonymous user tries to access unauthorised page

    I'm wondering how to do this, I tried to use a AccessDeniedHandler however according to the ExceptionTranslationFilter documentation when an AccessDeniedException is thrown and the user is anonymous the AccessDeniedHandler is ignored. Is there any way other than subclassing ExceptionTranslationFilter (which seems a little excessive) to display a custom message in this scenario? I'm using Spring 3.2 and security 3.1.
Working...
X