Skip to content

Commit 95b6bf8

Browse files
Merge pull request #700 from johanlundberg/lundberg_entity_category_and_attribute_mapping
SwedenConnect attribute mapping and SWAMID entity category, part 2
2 parents 2857dc6 + e8dd4ce commit 95b6bf8

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/saml2/attributemaps/saml_uri.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@
3232
# https://github.com/Umbrella-Commiters/UmbrellaIdP3/blob/master/schema/99-user.ldif
3333
UMBRELLA_EAAUser_ID = 'urn:oid:1.3.6.1.4.1.42750.1.1.'
3434

35+
# PKIX specification (SMI Security for PKIX Personal Data Attributes)
36+
# https://tools.ietf.org/html/rfc7299
37+
PKIX_OID = 'urn:oid:1.3.6.1.5.5.7.9.'
38+
3539
# INERA specification
3640
# Closet public spec source I could find, sadly in swedish
3741
# https://www.sambi.se/wordpress/wp-content/uploads/2017/06/Sambi_Attributspecifikation_1.1.pdf
@@ -143,6 +147,11 @@
143147
OPENOSI_OID+'109': 'osiOtherHomePhone',
144148
OPENOSI_OID+'120': 'osiWorkURL',
145149
PKCS_9+'1': 'email',
150+
PKIX_OID + '1': 'dateOfBirth',
151+
PKIX_OID + '2': 'placeOfBirth',
152+
PKIX_OID + '3': 'gender',
153+
PKIX_OID + '4': 'countryOfCitizenship',
154+
PKIX_OID + '5': 'countryOfResidence',
146155
SAML_SUBJECT_ID+'subject-id': 'subject-id',
147156
SAML_SUBJECT_ID+'pairwise-id': 'pairwise-id',
148157
SCHAC+'1': 'schacMotherTongue',
@@ -273,7 +282,10 @@
273282
'certificateRevocationList': X500ATTR_OID+'39',
274283
'cn': X500ATTR_OID+'3',
275284
'co': UCL_DIR_PILOT+'43',
285+
'countryOfCitizenship': PKIX_OID+'4',
286+
'countryOfResidence': PKIX_OID+'5',
276287
'crossCertificatePair': X500ATTR_OID+'40',
288+
'dateOfBirth': PKIX_OID+'1',
277289
'dc': UCL_DIR_PILOT+'25',
278290
'deltaRevocationList': X500ATTR_OID+'53',
279291
'departmentNumber': NETSCAPE_LDAP+'2',
@@ -308,6 +320,7 @@
308320
'enhancedSearchGuide': X500ATTR_OID+'47',
309321
'facsimileTelephoneNumber': X500ATTR_OID+'23',
310322
'federationFeideSchemaVersion': NOREDUPERSON_OID+'9',
323+
'gender': PKIX_OID+'3',
311324
'generationQualifier': X500ATTR_OID+'44',
312325
'givenName': X500ATTR_OID+'42',
313326
'houseIdentifier': X500ATTR_OID+'51',
@@ -346,6 +359,7 @@
346359
'personalIdentityNumber': INERA_OID+'13',
347360
'personalIdentityNumberBinding': DIGG_OID+'6',
348361
'physicalDeliveryOfficeName': X500ATTR_OID+'19',
362+
'placeOfBirth': PKIX_OID+'2',
349363
'postOfficeBox': X500ATTR_OID+'18',
350364
'postalAddress': X500ATTR_OID+'16',
351365
'postalCode': X500ATTR_OID+'17',

0 commit comments

Comments
 (0)