Announcement Announcement Module
Collapse
No announcement yet.
redirecting authorised users when accessing @PreAuthorize("isAnonymous()") Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • redirecting authorised users when accessing @PreAuthorize("isAnonymous()")

    I have my registration controller setup to only allow anonymous users

    Code:
    @Controller
    @PreAuthorize("isAnonymous()")
    public class RegistrationController {
       //snip
    }
    this however throws a 403, as expected, when an authorized user attempts to access this page.

    I am trying to find what handler/intercepter/filter I must reimplement, so in these cases, I can redirect the user to their "account" page.

    spring-security-3.1.1.RELEASE

    Thanks in advance
Working...
X