Community   SpringSource   Projects    Downloads    Documentation    Forums    Training   Exchange   Blogs

Go Back   Spring Community Forums > Core Spring Projects > Spring Security

Closed Thread
 
Thread Tools Display Modes
  #1  
Old Dec 19th, 2008, 01:16 AM
kevingrellier@hotmail.fr kevingrellier@hotmail.fr is offline
Junior Member
 
Join Date: Oct 2008
Posts: 2
Default 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  
Old Dec 19th, 2008, 10:46 AM
Luke Taylor Luke Taylor is offline
Senior Member
Acegi Security System TeamSpring Team
 
Join Date: Aug 2004
Location: Glasgow, Scotland
Posts: 2,815
Default

"/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.
  #3  
Old Dec 24th, 2008, 01:48 AM
kevingrellier@hotmail.fr kevingrellier@hotmail.fr is offline
Junior Member
 
Join Date: Oct 2008
Posts: 2
Thumbs up Thank you

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

Tags
login, redirect, rerouting, security, spring

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 10:25 PM.


Contegix provides first-class managed hosting and partial sponsorship of these forums.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.