Changeset 1453 for trunk


Ignore:
Timestamp:
11/29/19 15:08:35 (4 years ago)
Author:
bnemhaus
Message:

The role of USER_NOBODY is different from ProfileManagment.USER_NAME_FLAG. This change reflects a better understanding of that.
We can set USER_NOBDY back to 'nobody' as originally designed.

Checking if you are authenticated now uses the username value kept track of in the Java property.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/auth/AuthenticatorBrowser.java

    r1440 r1453  
    8181       
    8282        private KeyStore keyStore = KeyStore.getInstance(KeystoreType);
    83         public static String USER_NOBODY = "${USER_NAME}";
     83        public static String USER_NOBODY = "nobody";
    8484               
    8585        private static final byte[] TRUE = "yes".getBytes();
     
    9999       
    100100        public static boolean isAuthenticated() {
    101                 return isAuthenticationRequired() && !UserSettings.UserName.get().equals(AuthenticatorBrowser.USER_NOBODY);
     101                //return isAuthenticationRequired() && !UserSettings.UserName.get().equals(AuthenticatorBrowser.USER_NOBODY);
     102                return isAuthenticationRequired() && !System.getProperty("user.name").equals(AuthenticatorBrowser.USER_NOBODY);
    102103        }
    103104       
Note: See TracChangeset for help on using the changeset viewer.