Bug 32354: Accept session_state param given by OAuth IdP
authorAleisha Amohia <aleishaamohia@hotmail.com>
Sun, 27 Nov 2022 21:24:59 +0000 (21:24 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 7 Dec 2022 15:58:32 +0000 (12:58 -0300)
commita4d9f572bcd9bf5464040dadf70ca9ad9e4810b7
treebc3503e8d6fdc830acf34d8dc7f75619ad81ccb3
parentcab41556498a35ba3594240410634db3d59b1fe4
Bug 32354: Accept session_state param given by OAuth IdP

This patch ensures Koha doesn't throw an error if the IdP hands back a
session_state parameter.

To test:

1) Set up an identity provider
2) On the IdP's configuration, make it hand back a session_state
3) Confirm authentication using OIDC works with and without the
session_state

Sponsored-by: Plant & Food Research
Signed-off-by: David Cook <dcook@prosentient.com.au>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
api/v1/swagger/paths/oauth.yaml
api/v1/swagger/paths/public_oauth.yaml