]> git.koha-community.org Git - koha.git/commit
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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Tue, 12 Mar 2024 11:05:05 +0000 (12:05 +0100)
commit46c0419a11d56b078f1f8528e51bf1a78bd284e6
treea41cc0fac9e08248bde70c76b88b0d6e3b0d7626
parent97026a069d4fa51a4cf05c516a3250c9be8b6658
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>
Koha/Token.pm