Skip to content

Commit

Permalink
Add the voPerson v2 attributes mappings
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
  • Loading branch information
c00kiemon5ter committed Jun 28, 2022
1 parent 716019c commit 0a030cb
Showing 1 changed file with 55 additions and 21 deletions.
76 changes: 55 additions & 21 deletions src/saml2/attributemaps/saml_uri.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
EDUPERSON_OID = 'urn:oid:1.3.6.1.4.1.5923.1.1.1.'
EDUMEMBER1_OID = 'urn:oid:1.3.6.1.4.1.5923.1.5.1.'

# voPerson class References:
# - https://github.com/voperson/voperson/blob/2.0.0/voPerson.md#voperson-object-class-definition
VOPERSON_V2_OID = 'urn:oid:1.3.6.1.4.1.25178.4.1.'

# ldap.gv.at definitions as specified in:
# http://www.ref.gv.at/AG-IZ-PVP2-Version-2-1-0-2.2754.0.html
LDAPGVAT_OID = 'urn:oid:1.2.40.0.10.2.1.1.'
Expand Down Expand Up @@ -48,20 +52,20 @@
MAP = {
'identifier': 'urn:oasis:names:tc:SAML:2.0:attrname-format:uri',
'fro': {
DIGG_OID + '1': 'orgAffiliation',
DIGG_OID + '2': 'transactionIdentifier',
DIGG_OID + '3': 'authContextParams',
DIGG_OID + '4': 'prid',
DIGG_OID + '5': 'pridPersistence',
DIGG_OID + '6': 'personalIdentityNumberBinding',
DIGG_OID + '7': 'eidasPersonIdentifier',
DIGG_OID + '8': 'birthName',
DIGG_OID + '9': 'eidasNaturalPersonAddress',
DIGG_OID + '10': 'userCertificate',
DIGG_OID + '11': 'userSignature',
DIGG_OID + '12': 'sad',
DIGG_OID + '13': 'authServerSignature',
DIGG_OID + '14': 'signMessageDigest',
DIGG_OID+'1': 'orgAffiliation',
DIGG_OID+'2': 'transactionIdentifier',
DIGG_OID+'3': 'authContextParams',
DIGG_OID+'4': 'prid',
DIGG_OID+'5': 'pridPersistence',
DIGG_OID+'6': 'personalIdentityNumberBinding',
DIGG_OID+'7': 'eidasPersonIdentifier',
DIGG_OID+'8': 'birthName',
DIGG_OID+'9': 'eidasNaturalPersonAddress',
DIGG_OID+'10': 'userCertificate',
DIGG_OID+'11': 'userSignature',
DIGG_OID+'12': 'sad',
DIGG_OID+'13': 'authServerSignature',
DIGG_OID+'14': 'signMessageDigest',
EIDAS_LEGALPERSON+'LegalPersonIdentifier': 'LegalPersonIdentifier',
EIDAS_LEGALPERSON+'LegalPersonAddress': 'LegalAddress',
EIDAS_LEGALPERSON+'LegalName': 'LegalName',
Expand Down Expand Up @@ -98,8 +102,8 @@
EDUPERSON_OID+'12': 'eduPersonPrincipalNamePrior',
EDUPERSON_OID+'13': 'eduPersonUniqueId',
EDUPERSON_OID+'16': 'eduPersonOrcid',
INERA_OID + '1': 'employeeHsaId',
INERA_OID + '13': 'personalIdentityNumber',
INERA_OID+'1': 'employeeHsaId',
INERA_OID+'13': 'personalIdentityNumber',
LDAPGVAT_OID+'1': 'PVP-GID',
LDAPGVAT_OID+'149': 'PVP-BPK',
LDAPGVAT_OID+'153': 'PVP-OU-OKZ',
Expand Down Expand Up @@ -147,11 +151,11 @@
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',
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',
Expand Down Expand Up @@ -249,6 +253,21 @@
SWISSEDUPERSON_OID+'13': 'swissEduID',
SWISSEDUPERSON_OID+'1023': 'swissLibraryPersonAffiliation',
SWISSEDUPERSON_OID+'1025': 'swissLibraryPersonResidence',
VOPERSON_V2_OID+'1': 'voPersonApplicationUID',
VOPERSON_V2_OID+'2': 'voPersonAuthorName',
VOPERSON_V2_OID+'3': 'voPersonCertificateDN',
VOPERSON_V2_OID+'4': 'voPersonCertificateIssuerDN',
VOPERSON_V2_OID+'5': 'voPersonExternalID',
VOPERSON_V2_OID+'6': 'voPersonID',
VOPERSON_V2_OID+'7': 'voPersonPolicyAgreement',
VOPERSON_V2_OID+'8': 'voPersonSoRID',
VOPERSON_V2_OID+'9': 'voPersonStatus',
VOPERSON_V2_OID+'10': 'voPersonAffiliation',
VOPERSON_V2_OID+'11': 'voPersonExternalAffiliation',
VOPERSON_V2_OID+'12': 'voPersonScopedAffiliation',
VOPERSON_V2_OID+'13': 'voPersonApplicationPassword',
VOPERSON_V2_OID+'14': 'voPersonVerifiedEmail',
VOPERSON_V2_OID+'15': 'voPersonToken',
},
'to': {
'LegalPersonIdentifier': EIDAS_LEGALPERSON+'LegalPersonIdentifier',
Expand Down Expand Up @@ -452,5 +471,20 @@
'swissEduID': SWISSEDUPERSON_OID+'13',
'swissLibraryPersonAffiliation': SWISSEDUPERSON_OID+'1023',
'swissLibraryPersonResidence': SWISSEDUPERSON_OID+'1025',
'voPersonAffiliation': VOPERSON_V2_OID+'10',
'voPersonApplicationPassword': VOPERSON_V2_OID+'13',
'voPersonApplicationUID': VOPERSON_V2_OID+'1',
'voPersonAuthorName': VOPERSON_V2_OID+'2',
'voPersonCertificateDN': VOPERSON_V2_OID+'3',
'voPersonCertificateIssuerDN': VOPERSON_V2_OID+'4',
'voPersonExternalAffiliation': VOPERSON_V2_OID+'11',
'voPersonExternalID': VOPERSON_V2_OID+'5',
'voPersonID': VOPERSON_V2_OID+'6',
'voPersonPolicyAgreement': VOPERSON_V2_OID+'7',
'voPersonScopedAffiliation': VOPERSON_V2_OID+'12',
'voPersonSoRID': VOPERSON_V2_OID+'8',
'voPersonStatus': VOPERSON_V2_OID+'9',
'voPersonToken': VOPERSON_V2_OID+'15',
'voPersonVerifiedEmail': VOPERSON_V2_OID+'14',
}
}

0 comments on commit 0a030cb

Please sign in to comment.