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>
This commit is contained in:
David Cook 2022-11-09 00:43:53 +00:00 committed by Tomas Cohen Arazi
parent c53a114857
commit a24f890403
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -536,8 +536,8 @@
},
mapping: {
email: "email",
given_name: "firstname",
family_name: "surname"
firstname: "given_name",
surname: "family_name"
}
},
OAuth: {