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)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 1 Mar 2024 09:55:30 +0000 (10:55 +0100)
commit0e6537d199fe49a9e91e1c75f9462ddf1c878fed
treea67f80d1b386c53059d283ec5e66cd2ee136a983
parent7c54394383234f33dcf5b6acb8ceabb72d0deca4
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>
C4/Auth.pm
Koha/Session.pm [new file with mode: 0644]
t/db_dependent/Koha/Session.t [new file with mode: 0755]