+<%= request.getAttribute(AccessDeniedHandlerImpl.ACEGI_SECURITY_ACCESS_DENIED_EXCEPTION_KEY)%> + +
+
+<% Authentication auth = SecurityContextHolder.getContext().getAuthentication();
+ if (auth != null) { %>
+ Authentication object as a String: <%= auth.toString() %>
+<% } %>
diff --git a/samples/tutorial/src/webapp/acegilogin.jsp b/samples/tutorial/src/webapp/acegilogin.jsp
new file mode 100644
index 0000000000..eccdc7b0af
--- /dev/null
+++ b/samples/tutorial/src/webapp/acegilogin.jsp
@@ -0,0 +1,45 @@
+<%@ taglib prefix='c' uri='http://java.sun.com/jstl/core' %>
+<%@ page import="org.acegisecurity.ui.AbstractProcessingFilter" %>
+<%@ page import="org.acegisecurity.ui.webapp.AuthenticationProcessingFilter" %>
+<%@ page import="org.acegisecurity.AuthenticationException" %>
+
+
+
Valid users: +
+
username marissa, password koala (supervisor) +
username dianne, password emu (normal user) +
username scott, password wombat (normal user) +
username peter, password opal (user disabled) +
+
+ <%-- 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() %>
+
+
Extremely secure page + + \ No newline at end of file diff --git a/samples/tutorial/src/webapp/secure/extreme/index.jsp b/samples/tutorial/src/webapp/secure/extreme/index.jsp new file mode 100644 index 0000000000..801e2992ba --- /dev/null +++ b/samples/tutorial/src/webapp/secure/extreme/index.jsp @@ -0,0 +1,9 @@ + +
+Home +
Logout + + \ No newline at end of file diff --git a/samples/tutorial/src/webapp/secure/index.jsp b/samples/tutorial/src/webapp/secure/index.jsp new file mode 100644 index 0000000000..f9a24e4a08 --- /dev/null +++ b/samples/tutorial/src/webapp/secure/index.jsp @@ -0,0 +1,10 @@ + +
+Home +
Logout + + \ No newline at end of file