LP#1552060: fix persistent login
authorGalen Charlton <gmc@esilibrary.com>
Fri, 4 Mar 2016 19:50:22 +0000 (14:50 -0500)
committerDan Wells <dbw2@calvin.edu>
Fri, 4 Mar 2016 20:26:24 +0000 (15:26 -0500)
This patch makes open-ils.auth_internal look for
default_timeout values for persistent authentication
in the intended section of opensrf.xml.

To test:

[1] Attempt to log into the public catalog with the "Stay logged in?"
    option in effect.  The login will either fail or the session
    will not persist when navigating within the "My Account"
    pages.
[2] Apply the patch and restart services.
[3] Attempt step 1 again; this time, authentication should work
    and the session should remain active.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/src/c-apps/oils_auth_internal.c

index 8f43e13..a2fa08e 100644 (file)
@@ -103,7 +103,7 @@ static long oilsAuthGetTimeout(
         jsonObject* value_obj;
 
         value_obj = osrf_settings_host_value_object(
-            "/apps/open-ils.auth/app_settings/default_timeout/opac" );
+            "/apps/open-ils.auth_internal/app_settings/default_timeout/opac" );
         _oilsAuthOPACTimeout = oilsUtilsIntervalToSeconds( jsonObjectGetString( value_obj ));
         jsonObjectFree(value_obj);
         if( -1 == _oilsAuthOPACTimeout ) {
@@ -112,7 +112,7 @@ static long oilsAuthGetTimeout(
         }
 
         value_obj = osrf_settings_host_value_object(
-            "/apps/open-ils.auth/app_settings/default_timeout/staff" );
+            "/apps/open-ils.auth_internal/app_settings/default_timeout/staff" );
         _oilsAuthStaffTimeout = oilsUtilsIntervalToSeconds( jsonObjectGetString( value_obj ));
         jsonObjectFree(value_obj);
         if( -1 == _oilsAuthStaffTimeout ) {
@@ -121,7 +121,7 @@ static long oilsAuthGetTimeout(
         }
 
         value_obj = osrf_settings_host_value_object(
-            "/apps/open-ils.auth/app_settings/default_timeout/temp" );
+            "/apps/open-ils.auth_internal/app_settings/default_timeout/temp" );
         _oilsAuthOverrideTimeout = oilsUtilsIntervalToSeconds( jsonObjectGetString( value_obj ));
         jsonObjectFree(value_obj);
         if( -1 == _oilsAuthOverrideTimeout ) {
@@ -130,7 +130,7 @@ static long oilsAuthGetTimeout(
         }
 
         value_obj = osrf_settings_host_value_object(
-            "/apps/open-ils.auth/app_settings/default_timeout/persist" );
+            "/apps/open-ils.auth_internal/app_settings/default_timeout/persist" );
         _oilsAuthPersistTimeout = oilsUtilsIntervalToSeconds( jsonObjectGetString( value_obj ));
         jsonObjectFree(value_obj);
         if( -1 == _oilsAuthPersistTimeout ) {