From a24f890403b261d2520941da65d1b557f9fb2754 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" } Signed-off-by: Tomas Cohen Arazi --- .../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 3c56c09270..701d798145 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 @@ -536,8 +536,8 @@ }, mapping: { email: "email", - given_name: "firstname", - family_name: "surname" + firstname: "given_name", + surname: "family_name" } }, OAuth: { -- 2.39.5