Bug 32138: Fix OIDC default mapping
authorDavid Cook <dcook@prosentient.com.au>
Wed, 9 Nov 2022 00:43:53 +0000 (00:43 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 9 Nov 2022 16:40:28 +0000 (13:40 -0300)
commita24f890403b261d2520941da65d1b557f9fb2754
treeb9e3ac162d5ec2a9c931bbd0b5443d452c37ab92
parentc53a114857fe90b173d3393f808bbec4198b6baf
Bug 32138: Fix OIDC default mapping

This patch fixes the OIDC default mapping to have the Koha fields on
the left (ie key) and the OIDC standard claim fields on the right (ie value).

1. Apply the patch
2. Go to http://localhost:8081/cgi-bin/koha/admin/identity_providers.pl?op=add_form
3. Choose "OIDC" for "Protocol"
4. Click "Add default OIDC mapping"
5. Note the following is displayed:
{
  "email": "email",
  "firstname": "given_name",
  "surname": "family_name"
}

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/identity_providers.tt