The logout out filter is triggered by matching the URL you are posting and what is configured in your filter. If you have your own custom logout filter, obviously you need to configure it.
public class CustomLogoutHandler implements LogoutHandler {
public void logout(HttpServletRequest request,
HttpServletResponse response, Authentication authentication) {
...
}
Config:
<bean id="logoutFilter" class="org.acegisecurity.ui.logout.LogoutFilter">
<constructor-arg value="/pages/feedback.htm"/>
<!-- URL redirected to after logout -->
<constructor-arg>
<list>
<bean class="org.acegisecurity.ui.logout.SecurityContextLogoutHandler"/>
<bean class="com.wirecard.marduk.service.useradmin.acegi.CustomLogoutHandler"/>
</list>
</constructor-arg>
<property name="filterProcessesUrl" value="/j_acegi_exit_user"/>
</bean>
Make sure that your logout link / button should post to whatever URL you have configured in filterProcessesUrl. This is used for matching.
HTH
[EMAIL PROTECTED] wrote:
Hi Gurus!
I like to know how is the logout filter triggered?
Second question is if there is a password expired filter that redirects
to a page for setting a new password? If not what is the best practice
to handle this?
Regards
Gunnar
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Home: http://acegisecurity.org
Acegisecurity-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail.
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ Home: http://acegisecurity.org Acegisecurity-developer mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer
