diff --git a/samples/contacts/src/main/webapp/filter/exitUser.jsp b/samples/contacts/src/main/webapp/filter/exitUser.jsp new file mode 100644 index 0000000000..52298bd469 --- /dev/null +++ b/samples/contacts/src/main/webapp/filter/exitUser.jsp @@ -0,0 +1,45 @@ +<%@ taglib prefix='c' uri='http://java.sun.com/jstl/core' %> + +<%@ page import="net.sf.acegisecurity.context.SecurityContextHolder" %> +<%@ page import="net.sf.acegisecurity.Authentication" %> +<%@ page import="net.sf.acegisecurity.ui.AbstractProcessingFilter" %> +<%@ page import="net.sf.acegisecurity.ui.webapp.AuthenticationProcessingFilter" %> +<%@ page import="net.sf.acegisecurity.AuthenticationException" %> + + +
+Valid users: +
+
username marissa, password koala +
username dianne, password emu +
username scott, password wombat +
username bill, password wombat +
username bob, password wombat +
username jane, password wombat +
+
+ <%-- this form-login-page form is also used as the
+ form-error-page to ask for a login again.
+ --%>
+
+ Reason: <%= ((AuthenticationException) session.getAttribute(AbstractProcessingFilter.ACEGI_SECURITY_LAST_EXCEPTION_KEY)).getMessage() %>
+
+