Post login execution
Posted
by Javi
on Stack Overflow
See other posts from Stack Overflow
or by Javi
Published on 2010-03-11T11:55:04Z
Indexed on
2010/03/12
3:27 UTC
Read the original article
Hit count: 341
spring-security
|spring
Hello,
I need to do some processing only after the user has successfully logged in the system. I have thought that I can do a RESTful method and setting it as the default-target-url so when the login is successful it goes to this url and then I can redirect to the real index of my web application.
<form-login login-page='/login.htm' default-target-url='/home.htm' always-use-default-target='true' />
The problem is that this processing can be executed by calling its URL so it could be executed by any user at any time. I want to make sure it is only executed after login. Is there any way to do this?
Thank you very much.
© Stack Overflow or respective owner