Bug 34755: Backport Koha::Token change from bug 34478
authorDavid Cook <dcook@prosentient.com.au>
Mon, 4 Mar 2024 04:19:38 +0000 (04:19 +0000)
committerLucas Gass <lucas@bywatersolutions.com>
Tue, 19 Mar 2024 21:26:05 +0000 (21:26 +0000)
commit19f79fa6064664a69597b0b330dca9c538b816bf
tree996b15ca1f250c38e9e0c5c20ac3d56477e51373
parenta121f21c0829c12d813052a545ae8d2f61908fe0
Bug 34755: Backport Koha::Token change from bug 34478

This change includes the Koha::Token changes which uses
Koha::Session for generating and checking CSRF tokens.

0. Apply the patch and koha-plack --restart kohadev
1. Setup Keycloak OIDC SSO according to "Testing SSO"
wiki guide
2. In a regular window go to http://localhost:8080
3. In a private window go to http://localhost:8080 and click
the SSO "Log in with..." button, but don't log into Keycloak
4. In the regular window, login locally, and navigate to 5-6 pages
5. In the private window, log into Keycloak
6. Note that you are redirected back to Koha and logged in
successfully (no wrong_csrf_token error).

Signed-off-by: Olivier Hubert <olivier.hubert@inlibro.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 46c0419a11d56b078f1f8528e51bf1a78bd284e6)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Koha/Token.pm