]> git.koha-community.org Git - koha.git/commit
Bug 36098: Add Koha::Session module to ease session handling
authorDavid Cook <dcook@prosentient.com.au>
Thu, 15 Feb 2024 02:49:18 +0000 (02:49 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 11 Mar 2024 09:03:04 +0000 (10:03 +0100)
commitf927343a88ade7cf3fe860b60c41057e6ff39692
tree2a304a8aa839f34df6df7a6f8ca5153adbfbbe68
parentb94bb009dca187cba85c072f1d7e00af484bdcea
Bug 36098: Add Koha::Session module to ease session handling

This patch adds a Koha::Session module that makes it easier
to work with Koha sessions without needing the full C4::Auth module.

Test plan:
0. Apply the patch
1. Run the following unit tests:
prove ./t/db_dependent/Auth.t
prove ./t/db_dependent/Auth_with_cas.t
prove ./t/db_dependent/Koha/Session.t
2. Observe that they all pass

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 0e6537d199fe49a9e91e1c75f9462ddf1c878fed)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
C4/Auth.pm
Koha/Session.pm [new file with mode: 0644]
t/db_dependent/Koha/Session.t [new file with mode: 0755]