Add support for detecting Spring Security user names in the manager app
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 24 Mar 2010 14:05:15 +0000 (14:05 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 24 Mar 2010 14:05:15 +0000 (14:05 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@927062 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/manager/util/SessionUtils.java

index 7b784ec..c165432 100644 (file)
@@ -61,7 +61,8 @@ public class SessionUtils {
      * Lower and upper-case strings will be dynamically generated. Put mid-capitalised strings here!
      */
     private static final String[] USER_TEST_ATTRIBUTES = new String[] {
-        "Login", "User", "userName", "UserName", "Utilisateur" };
+        "Login", "User", "userName", "UserName", "Utilisateur",
+        "SPRING_SECURITY_LAST_USERNAME"};
 
     /**
      * Try to get user locale from the session, if possible.