Save POST data to SavedRequest object so that it can be used after authentication

Details

Description

Currently if a POST request is sent to the server and it requires authentication the body of the post is lost and because of this the default for Spring Security is to redirect to the default page after authentication. A better solution would be to save the body from the post so that it can be used following authentication.

It is possible to have a POST request start authentication and pick it up later - webflow uses this (there were one or two issues with parameters and saved requests). It won't automatically use the default target. The parameters, headers etc will be retained, but not the body. Retaining the body would potentially leave the app vulnerable to being easily overloaded by unauthenticated users submitting large requests.

Luke Taylor
added a comment - 31/Jul/08 1:21 AM It is possible to have a POST request start authentication and pick it up later - webflow uses this (there were one or two issues with parameters and saved requests). It won't automatically use the default target. The parameters, headers etc will be retained, but not the body. Retaining the body would potentially leave the app vulnerable to being easily overloaded by unauthenticated users submitting large requests.

I would love to see this supported as a configurable option. We have had to modify Spring Secuirty to get this functionality but I hate having to maintain modifications like this. We recognize the potentially vulnerability this feature posses, but the wrath of an unhappy user that spent a great amount of time filling out a form is a greater risk for us.

Michael Schumann
added a comment - 09/Feb/09 9:02 AM I would love to see this supported as a configurable option. We have had to modify Spring Secuirty to get this functionality but I hate having to maintain modifications like this. We recognize the potentially vulnerability this feature posses, but the wrath of an unhappy user that spent a great amount of time filling out a form is a greater risk for us.