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)
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

index e471336..2b3f2fb 100644 (file)
         in: query
         description: Web page with user friendly description of the error
         type: string
+      - name: session_state
+        in: query
+        description: Session state returned by OAuth server
+        type: string
     responses:
       "302":
         description: User authorized
index 40fe951..80ac4e3 100644 (file)
         in: query
         description: Web page with user friendly description of the error
         type: string
+      - name: session_state
+        in: query
+        description: Session state returned by OAuth server
+        type: string
     responses:
       "302":
         description: User authorized