[Koha-bugs] [Bug 33675] Add CSRF protection to OAuth/OIDC authentication
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu May 18 20:29:30 CEST 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33675
Nick Clemens <nick at bywatersolutions.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #151036|0 |1
is obsolete| |
--- Comment #10 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 151436
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=151436&action=edit
Bug 33675: Add CSRF protection to OAuth/OIDC authentication
This patch makes the OAuth/OIDC client pass a `state` parameter with a
CSRF protection token, to be validated back when the flow returns to
Koha.
Ideally, the Mojolicious::Plugin::OAuth2 library should deal with this
implicitly, probably making use of JWT. But as of now, this is the best
way to implement it.
To test:
1. Have a working SSO solution (ktd --sso)
2. Click to login using SSO
=> SUCCESS: Notice a 'state' parameter on the URL, looks like a random
thing
3. When you login, no error is reported
Signed-off-by: David Cook <dcook at prosentient.com.au>
Signed-off-by: Nick Clemens <nick at bywatersolutions.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list