]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#1724915 Webstaff auth timeout works w/ multiple tabs
authorBill Erickson <berickxx@gmail.com>
Thu, 19 Oct 2017 18:46:01 +0000 (14:46 -0400)
committerMike Rylander <mrylander@gmail.com>
Thu, 9 Nov 2017 14:42:54 +0000 (09:42 -0500)
commitb10fd571f5993691f332f1a0579babf0ae836c9a
tree9cedd48be3a48b346bc876618bf864e4f464b4b5
parent98deff54108cd1b07b66679d2e0872c88969e26c
LP#1724915 Webstaff auth timeout works w/ multiple tabs

Adds a new API parameter to open-ils.session.retrieve which allows the
session to be fetched without extending the auth session timeout.

Teach the browser client to use the new API.

Teach the browser client to notify all webstaff tabs when a logout event
has occurred, so every tab can immediately log out.

To test
-------
[0] Apply the patch.
[1] Log in the web staff client, then open a new window/tab
    and navigate to the web staff client.
[2] Log out of the web staff client in one window. Verify that
    the second window automatically refreshes and goes to the
    login page.
[3] Set a low staff idle timeout (optional).
[4] Repeat step 1, then wait for the timeout. Verify that the
    staff client is logged out in both windows.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/c-apps/oils_auth.c
Open-ILS/web/js/ui/default/staff/services/auth.js
Open-ILS/web/js/ui/default/staff/services/startup.js