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

  • Redirect Spring Security

    Hello,
    Excuse me to disturb you but i'm new with spring security and i would like to redirect an user after a success login.
    Currently, i use the default way, j_spring_security in my jsp.
    In fact, I would like the user is redirected to the page where it was before its authentication.

    Thanks a lot for your help

    Kevin

    (i hope i was understandable)

  • #2
    "/j_spring_security_check" is the URL that processes the login. The targetUrl property controls the destination afterwards. You can override the way this is determined by extending the AuthenticationProcessingFilter class or plugging in an alternative TargetUrlResolver. You can also submit the parameter "spring-security-redirect" with the login to specify the required destination. So if you have an embedded login form, for example, that would be a good solution.

    Comment


    • #3
      Thank you

      Thanl you very much for your answer, it works perfectly, thanks

      Comment

      Working...
      X