Using Spring MVC SimpleFormController for login form?
Is it possible to use the standard Spring SimpleFormController along with Acegi to control the login form? So... in the AuthenticationProcessingFilterEntryPoint bean, the loginFormUrl would be /login.html or some URL managed by Spring MVC.
The problem I am having is how to direct the login information to the url managed by Acegi as specified in the AuthenticationProcessingFilter.filterProcessesUrl attribute.
This is probably a simple solution but for some reason, I am not seeing it.
Thanks!
Re: Using Spring MVC SimpleFormController for login form?
Quote:
Originally Posted by therring
Is it possible to use the standard Spring SimpleFormController along with Acegi to control the login form?
Yes, although why do you wish to do this?
Quote:
Originally Posted by therring
So... in the AuthenticationProcessingFilterEntryPoint bean, the loginFormUrl would be /login.html or some URL managed by Spring MVC.
AuthenticationProcessingFilterEntryPoint would be the URL your SimpleFormController is configured to process. The SimpleFormController will return a ModelAndView which specifies the login form view.
Quote:
Originally Posted by therring
The problem I am having is how to direct the login information to the url managed by Acegi as specified in the AuthenticationProcessingFilter.filterProcessesUrl attribute.
This post might help:
http://forum.springframework.org/showthread.php?t=17348