From 462421ccf5775bf532b2d20b0e167cdcac077278 Mon Sep 17 00:00:00 2001 From: David Cook Date: Wed, 9 Nov 2022 00:43:53 +0000 Subject: [PATCH] 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" } --- .../intranet-tmpl/prog/en/modules/admin/identity_providers.tt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/identity_providers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/identity_providers.tt index 460f37ac40..5e3c06bc76 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/identity_providers.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/identity_providers.tt @@ -534,8 +534,8 @@ }, mapping: { email: "email", - given_name: "firstname", - family_name: "surname" + firstname: "given_name", + surname: "family_name" } }, OAuth: { -- 2.30.2