]> 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)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Fri, 2 Aug 2024 16:59:58 +0000 (18:59 +0200)
commiteabd792ee93ce4dd84b36f143ee2ccaa184ed147
treeaf74fa64cf68bd0992f314f56924fa70dea18169
parent6c6982b983381bc6344fff1b7fb6a39bd9af157c
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>
misc/migration_tools/koha-svc.pl