diff options
author | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2020-07-10 13:10:42 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-10 13:10:42 +0300 |
commit | 95b6bf80310ef423ce9e234656cf5780e8cbc54f (patch) | |
tree | 4af7651f6f411351151717fc5bd23fff0db8b66c | |
parent | 2857dc6a8085795b1c929683b1ed298a397b3eb3 (diff) | |
parent | e8dd4ce8e77110fbf618e2dbd18d707b6ab810c2 (diff) | |
download | pysaml2-95b6bf80310ef423ce9e234656cf5780e8cbc54f.tar.gz |
Merge pull request #700 from johanlundberg/lundberg_entity_category_and_attribute_mapping
SwedenConnect attribute mapping and SWAMID entity category, part 2
-rw-r--r-- | src/saml2/attributemaps/saml_uri.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/saml2/attributemaps/saml_uri.py b/src/saml2/attributemaps/saml_uri.py index c939699a..5ffa8078 100644 --- a/src/saml2/attributemaps/saml_uri.py +++ b/src/saml2/attributemaps/saml_uri.py @@ -32,6 +32,10 @@ SAML_SUBJECT_ID = 'urn:oasis:names:tc:SAML:attribute:' # https://github.com/Umbrella-Commiters/UmbrellaIdP3/blob/master/schema/99-user.ldif UMBRELLA_EAAUser_ID = 'urn:oid:1.3.6.1.4.1.42750.1.1.' +# PKIX specification (SMI Security for PKIX Personal Data Attributes) +# https://tools.ietf.org/html/rfc7299 +PKIX_OID = 'urn:oid:1.3.6.1.5.5.7.9.' + # INERA specification # Closet public spec source I could find, sadly in swedish # https://www.sambi.se/wordpress/wp-content/uploads/2017/06/Sambi_Attributspecifikation_1.1.pdf @@ -143,6 +147,11 @@ MAP = { OPENOSI_OID+'109': 'osiOtherHomePhone', OPENOSI_OID+'120': 'osiWorkURL', PKCS_9+'1': 'email', + PKIX_OID + '1': 'dateOfBirth', + PKIX_OID + '2': 'placeOfBirth', + PKIX_OID + '3': 'gender', + PKIX_OID + '4': 'countryOfCitizenship', + PKIX_OID + '5': 'countryOfResidence', SAML_SUBJECT_ID+'subject-id': 'subject-id', SAML_SUBJECT_ID+'pairwise-id': 'pairwise-id', SCHAC+'1': 'schacMotherTongue', @@ -273,7 +282,10 @@ MAP = { 'certificateRevocationList': X500ATTR_OID+'39', 'cn': X500ATTR_OID+'3', 'co': UCL_DIR_PILOT+'43', + 'countryOfCitizenship': PKIX_OID+'4', + 'countryOfResidence': PKIX_OID+'5', 'crossCertificatePair': X500ATTR_OID+'40', + 'dateOfBirth': PKIX_OID+'1', 'dc': UCL_DIR_PILOT+'25', 'deltaRevocationList': X500ATTR_OID+'53', 'departmentNumber': NETSCAPE_LDAP+'2', @@ -308,6 +320,7 @@ MAP = { 'enhancedSearchGuide': X500ATTR_OID+'47', 'facsimileTelephoneNumber': X500ATTR_OID+'23', 'federationFeideSchemaVersion': NOREDUPERSON_OID+'9', + 'gender': PKIX_OID+'3', 'generationQualifier': X500ATTR_OID+'44', 'givenName': X500ATTR_OID+'42', 'houseIdentifier': X500ATTR_OID+'51', @@ -346,6 +359,7 @@ MAP = { 'personalIdentityNumber': INERA_OID+'13', 'personalIdentityNumberBinding': DIGG_OID+'6', 'physicalDeliveryOfficeName': X500ATTR_OID+'19', + 'placeOfBirth': PKIX_OID+'2', 'postOfficeBox': X500ATTR_OID+'18', 'postalAddress': X500ATTR_OID+'16', 'postalCode': X500ATTR_OID+'17', |