From 3ff4401bc46c924b0f0f778f1342e9188a4278b2 Mon Sep 17 00:00:00 2001 From: Ian Scott Date: Thu, 10 Aug 2023 12:53:22 -0400 Subject: [PATCH] Fixed SAML login configuration --- invenio.cfg | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/invenio.cfg b/invenio.cfg index a79827f9..8095bab5 100644 --- a/invenio.cfg +++ b/invenio.cfg @@ -546,11 +546,20 @@ SSO_SAML_IDPS = { # Account Mapping "mappings": { - "email": "mail", - "name": "cn", - "surname": "sn", - "external_id": "external_id", + "email": "urn:oid:0.9.2342.19200300.100.1.3", # "mail" + # "name": "urn:oid:2.5.4.3", # "cn" + "name": "urn:oid:2.5.4.42", # "givenName" + "surname": "urn:oid:2.5.4.4", # "sn" + "external_id": "urn:oid:2.16.840.1.113730.3.1.3", # "employeeNumber" }, + # "title", 'urn:oid:2.5.4.12': ['Hc Developer'], + # 'urn:oid:2.16.840.1.113730.3.1.3': ['iscott'], + # 'urn:oid:0.9.2342.19200300.100.1.1': ['100103028069838784737+google.com@commons.mla.org'], + # "isMemberOf", 'urn:oid:1.3.6.1.4.1.5923.1.5.1.1': ['CO:COU:HC:members:active'], + # 'urn:oid:1.3.6.1.4.1.49574.110.13': ['https://google-gateway.hcommons-dev.org/idp/shibboleth'], + # 'urn:oid:1.3.6.1.4.1.49574.110.10': ['Google login'], + # 'urn:oid:1.3.6.1.4.1.49574.110.11': ['Humanities Commons'], + # 'urn:oid:1.3.6.1.4.1.49574.110.12': ['Humanities Commons']} # Inject your remote_app to handler # Note: keep in mind the string should match