+
diff --git a/samples/contacts/src/main/webapp/casfailed.jsp b/samples/contacts/src/main/webapp/casfailed.jsp
deleted file mode 100644
index 787045c376..0000000000
--- a/samples/contacts/src/main/webapp/casfailed.jsp
+++ /dev/null
@@ -1,17 +0,0 @@
-<%@ page import="org.springframework.security.AuthenticationException" %>
-
-
-
- Login to CAS failed!
-
-
-
- Login to CAS failed!
-
-
- Your CAS credentials were rejected.
- Reason: <%= ((AuthenticationException) session.getAttribute(org.springframework.security.ui.AbstractProcessingFilter.SPRING_SECURITY_LAST_EXCEPTION_KEY)).getMessage() %>
-
-
-
-
diff --git a/samples/contacts/src/main/webapp/secure/debug.jsp b/samples/contacts/src/main/webapp/secure/debug.jsp
index e154ee0e6b..9ed2819af3 100644
--- a/samples/contacts/src/main/webapp/secure/debug.jsp
+++ b/samples/contacts/src/main/webapp/secure/debug.jsp
@@ -1,28 +1,40 @@
<%@ page import="org.springframework.security.context.SecurityContextHolder" %>
<%@ page import="org.springframework.security.Authentication" %>
<%@ page import="org.springframework.security.GrantedAuthority" %>
-<%@ page import="org.springframework.security.adapters.AuthByAdapter" %>
+
+
+
+Security Debug Information
+
+
+
+Security Debug Information
<%
- Authentication auth = SecurityContextHolder.getContext().getAuthentication();
- if (auth != null) { %>
- Authentication object is of type: <%= auth.getClass().getName() %>
- Authentication object as a String: <%= auth.toString() %>
+ Authentication auth = SecurityContextHolder.getContext().getAuthentication();
+ if (auth != null) { %>
+
+ Authentication object is of type: <%= auth.getClass().getName() %>
+
+
+ Authentication object as a String:
<%= auth.toString() %>
+
- Authentication object holds the following granted authorities:
-<% GrantedAuthority[] granted = auth.getAuthorities();
- for (int i = 0; i < granted.length; i++) { %>
- <%= granted[i].toString() %> (getAuthority(): <%= granted[i].getAuthority() %>)
+ Authentication object holds the following granted authorities:
+<%
+ for (GrantedAuthority authority : auth.getAuthorities()) { %>
+ <%= authority %> (getAuthority(): <%= authority.getAuthority() %>)
<% }
+%>
- if (auth instanceof AuthByAdapter) { %>
-
SUCCESS! Your container adapter appears to be properly configured!
-<% } else { %>
-
SUCCESS! Your web filters appear to be properly configured!
-<% }
-
- } else { %>
- Authentication object is null.
- This is an error and your Acegi Security application will not operate properly until corrected.
+ Success! Your web filters appear to be properly configured!
+<%
+ } else {
+%>
+ Authentication object is null.
+ This is an error and your Spring Security application will not operate properly until corrected.
<% }
%>
+
+
+
diff --git a/samples/contacts/src/test/resources/applicationContext-contacts-test.xml b/samples/contacts/src/test/resources/applicationContext-contacts-test.xml
index cf9cce13fe..79936fcc35 100644
--- a/samples/contacts/src/test/resources/applicationContext-contacts-test.xml
+++ b/samples/contacts/src/test/resources/applicationContext-contacts-test.xml
@@ -14,7 +14,7 @@
http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-2.5.xsd">
-
+
@@ -24,7 +24,7 @@
-
+