]> git.koha-community.org Git - koha.git/commit
Bug 33881: Clear self-check JWT during auth kick out
authorDavid Cook <dcook@prosentient.com.au>
Tue, 6 Jun 2023 03:48:06 +0000 (03:48 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 8 Aug 2023 00:00:08 +0000 (21:00 -0300)
commitbbe1bffd9e01eb08ce99667dd64ffbfa2c1f6fae
treec746d098bc469f6475b8634bb174f1662ed5c1ac
parent6e0afe7b042ad14c6a833f495515631268aa5b54
Bug 33881: Clear self-check JWT during auth kick out

This patch clears the JWT cookie during auth kick out (ie
when a web user navigates from the self-check out/in to
the rest of Koha).

Test plan:
0. Apply patch and koha-plack --reload kohadev
1. Go to http://localhost:8080/cgi-bin/koha/sco/sco-main.pl
2. Log in as the "koha" user
3. In another tab, go to http://localhost:8080/cgi-bin/koha/sco/sco-main.pl
4. Go to http://localhost:8080/cgi-bin/koha/opac-search.pl?idx=&q=a&weight_search=1
5. Note that you are prompted to "Log in to your account" via the normal Koha prompt
6. Go to http://localhost:8080/cgi-bin/koha/sco/sco-main.pl
7. Note that you are prompted to "Log in to your account" within the "Self checkout system",
and note that your self-checkout session for the "koha" user has *not* persisted like
it did before the patch was applied

Signed-off-by: Andrew Fuerste-Henry <andrewfh@dubcolib.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
C4/Auth.pm