Announcement Announcement Module
Collapse
No announcement yet.
Redirect question Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Redirect question

    A very handy feature is with acegi I can directly acces the login page. The defaultTargetUrl is page where the user will be sent if it directly accesses the login page, but I want to to something more tricky. For example when user with admin role log in, he should be redirect to special admin page, but when normal user log in, he will be redirected to his main page... etc. Is there any easy way to do that? And my another question, can I set something that will always (no matter which url user want to acces) redirect user to the same main page?

  • #2
    Sounds like you would have to implement a custom AuthenticationProcessingFilter that would interrogate the principle and then decide which page to redirect to.

    Comment


    • #3
      I've found very good tutorial:
      http://jroller.com/ksevindik/entry/r...ifferent_start
      It's great , it was mensed here http://forum.springframework.org/sho...t=25573&page=2

      Thx for help

      Comment

      Working...
      X