Pascal Gehl wrote:

Hi guys,

Sorry to send to the developper mailing list but I can't get answers from
the spring mailing list.

I have a requirement to have different login pages depending on which
ressource is accessed.
I checked the acegi API and found nothing. Is there a "hidden" way to do that ?

thanks

Pascal Gehl
You'd need your AuthenticationEntryPoint to be customised:

public void commence(ServletRequest request, ServletResponse response, AuthenticationException authException) throws IOException, ServletException;

You can check the ServletRequest to determine the URL being requested, and then redirect accordingly. Base it on AuthenticationProcessingFilterEntryPoint.

Cheers
Ben




-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
Home: http://acegisecurity.sourceforge.net
Acegisecurity-developer mailing list
Acegisecurity-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer

Reply via email to