Hello all,
Acegi seems to currently miss multiple home pages support depending on
the actual user class.
IMHO this is a very useful feature, because it is a common task to
redirect toward a different home page after successfull login.
One implementation could be to add a call to a template method into
AbstractProcessingFilet.successfulAuthentication(HttpServletRequest
request, HttpServletResponse response, Authentication authResult)
method, something like :
abstract protected void overrideTargetUrl();
Here, in subclasses like AuthenticationProcessingFilter, we could
override the default target url with a new url which we could read from
a map, say "targetUrlMap", configured via a setter method (and so DI),
containing "class name" -> "url" pairs.
Moreover, being it a template method, we'd leave enough room for
different implementations.
I think this could be the least intrusive implementation.
What do you think about?
If useful, I could write patches and post them in Jira.
Let me kow.
Regards,
Sergio B.
--
Sergio Bossa (http://sbtourist.blogspot.com/)
- Pro-Netics s.r.l. (http://www.pro-netics.com)
- Montag (http://montag.sourceforge.net)
- QuickNote (http://quicknote.sourceforge.net)
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Home: http://acegisecurity.org
Acegisecurity-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer