Skip to content

Commit 25e9dc3

Browse files
skanctc00kiemon5ter
authored andcommitted
Add attribute mapping for umbrellaID attributes (#648)
umbrellaID is the federated identity system for the users of the (European) large neutron and photon facilities. This commit adds the mapping for the EAAHash and EEAKey, which are used for identifying users in the umbrellaID AAI.
1 parent 719ec93 commit 25e9dc3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/saml2/attributemaps/saml_uri.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727
# https://docs.oasis-open.org/security/saml-subject-id-attr/v1.0/cs01/saml-subject-id-attr-v1.0-cs01.html
2828
SAML_SUBJECT_ID = 'urn:oasis:names:tc:SAML:attribute:'
2929

30+
# umbrellaID specification - https://www.umbrellaid.org
31+
# https://github.com/Umbrella-Commiters/UmbrellaIdP3/blob/master/schema/99-user.ldif
32+
UMBRELLA_EAAUser_ID = 'urn:oid:1.3.6.1.4.1.42750.1.1.'
33+
3034
MAP = {
3135
'identifier': 'urn:oasis:names:tc:SAML:2.0:attrname-format:uri',
3236
'fro': {
@@ -143,6 +147,8 @@
143147
UCL_DIR_PILOT+'37': 'associatedDomain',
144148
UCL_DIR_PILOT+'43': 'co',
145149
UCL_DIR_PILOT+'60': 'jpegPhoto',
150+
UMBRELLA_EAAUser_ID+'1': 'EAAHash',
151+
UMBRELLA_EAAUser_ID+'3': 'EAAKey',
146152
UMICH+'57': 'labeledURI',
147153
X500ATTR_OID+'2': 'knowledgeInformation',
148154
X500ATTR_OID+'3': 'cn',
@@ -231,6 +237,8 @@
231237
'displayName': NETSCAPE_LDAP+'241',
232238
'dmdName': X500ATTR_OID+'54',
233239
'dnQualifier': X500ATTR_OID+'46',
240+
'EAAHash': UMBRELLA_EAAUser_ID+'1',
241+
'EAAKey': UMBRELLA_EAAUser_ID+'3',
234242
'eduCourseMember': EDUCOURSE_OID+'2',
235243
'eduCourseOffering': EDUCOURSE_OID+'1',
236244
'eduPersonAffiliation': EDUPERSON_OID+'1',

0 commit comments

Comments
 (0)