continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From car...@apache.org
Subject svn commit: r419031 - /maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/webapp/secure/debug.jsp
Date Tue, 04 Jul 2006 15:23:20 GMT
Author: carlos
Date: Tue Jul  4 08:23:20 2006
New Revision: 419031

URL: http://svn.apache.org/viewvc?rev=419031&view=rev
Log:
Removed duplicated code

Modified:
    maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/webapp/secure/debug.jsp

Modified: maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/webapp/secure/debug.jsp
URL: http://svn.apache.org/viewvc/maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/webapp/secure/debug.jsp?rev=419031&r1=419030&r2=419031&view=diff
==============================================================================
--- maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/webapp/secure/debug.jsp
(original)
+++ maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/webapp/secure/debug.jsp
Tue Jul  4 08:23:20 2006
@@ -1,32 +1,4 @@
 <%@ page import="org.acegisecurity.context.SecurityContextHolder" %>
-<%@ page import="org.acegisecurity.context.SecurityContextHolder" %>
-<%@ page import="org.acegisecurity.Authentication" %>
-<%@ page import="org.acegisecurity.GrantedAuthority" %>
-<%@ page import="org.acegisecurity.adapters.AuthByAdapter" %>
-
-<% 
-		Authentication auth = SecurityContextHolder.getContext().getAuthentication();
-		if (auth != null) { %>
-			Authentication object is of type: <%= auth.getClass().getName() %><BR><BR>
-			Authentication object as a String: <%= auth.toString() %><BR><BR>
-			
-			Authentication object holds the following granted authorities:<BR><BR>
-<%			GrantedAuthority[] granted = auth.getAuthorities();
-			for (int i = 0; i < granted.length; i++) { %>
-				<%= granted[i].toString() %> (getAuthority(): <%= granted[i].getAuthority()
%>)<BR>
-<%			}
-
-			if (auth instanceof AuthByAdapter) { %>
-				<BR><B>SUCCESS! Your container adapter appears to be properly configured!</B><BR><BR>
-<%			} else { %>
-				<BR><B>SUCCESS! Your web filters appear to be properly configured!</B><BR>
-<%			}
-			
-		} else { %>
-			Authentication object is null.<BR>
-			This is an error and your Acegi Security application will not operate properly until corrected.<BR><BR>
-<%		}
-%>
 <%@ page import="org.acegisecurity.Authentication" %>
 <%@ page import="org.acegisecurity.GrantedAuthority" %>
 <%@ page import="org.acegisecurity.adapters.AuthByAdapter" %>



Mime
View raw message