]> git.koha-community.org Git - koha.git/commit
Bug 37553: Use CSRF token for authenicated session for POSTing
authorDavid Cook <dcook@prosentient.com.au>
Fri, 2 Aug 2024 01:37:40 +0000 (01:37 +0000)
committerLucas Gass <lucas@bywatersolutions.com>
Wed, 11 Sep 2024 15:51:31 +0000 (15:51 +0000)
commite486a1e28ea7a34aba382205775fceab80f9256b
treed1621905fa4284912ff1b2fe5b935e7536a106ef
parentb21efc1e4d45d1de4ae378421974cb10fe264aab
Bug 37553: Use CSRF token for authenicated session for POSTing

This change fixes the Koha::SVC to store the CSRF token for
the authenticated session for further POSTing.

Test plan:
0. Apply the patch
1. perl ./misc/migration_tools/koha-svc.pl \
    http://localhost:8081/cgi-bin/koha/svc koha koha 29 > bib-29.xml
2. perl ./misc/migration_tools/koha-svc.pl \
    http://localhost:8081/cgi-bin/koha/svc koha koha 29 bib-29.xml
3. Note that the following appears in STDOUT and there is no 403 error:
"update 29 from bib-29.xml"

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit eabd792ee93ce4dd84b36f143ee2ccaa184ed147)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
misc/migration_tools/koha-svc.pl