Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add attributes from the Swiss eduPerson Schema #270

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
31 changes: 31 additions & 0 deletions docker/attributemaps/saml_uri.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
SIS = 'urn:oid:1.2.752.194.10.2.'
UMICH = 'urn:oid:1.3.6.1.4.1.250.1.57.'
OPENOSI_OID = 'urn:oid:1.3.6.1.4.1.27630.2.1.1.' #openosi-0.82.schema http://www.openosi.org/osi/display/ldap/Home
SWISSEDUPERSON_OID = 'urn:oid:2.16.756.1.2.5.1.1.'

MAP = {
'identifier': 'urn:oasis:names:tc:SAML:2.0:attrname-format:uri',
Expand Down Expand Up @@ -159,6 +160,21 @@
X500ATTR_OID+'53': 'deltaRevocationList',
X500ATTR_OID+'54': 'dmdName',
X500ATTR_OID+'65': 'pseudonym',
SWISSEDUPERSON_OID+'1': 'swissEduPersonUniqueID',
SWISSEDUPERSON_OID+'2': 'swissEduPersonDateOfBirth',
SWISSEDUPERSON_OID+'3': 'swissEduPersonGender',
SWISSEDUPERSON_OID+'4': 'swissEduPersonHomeOrganization',
SWISSEDUPERSON_OID+'5': 'swissEduPersonHomeOrganizationType',
SWISSEDUPERSON_OID+'6': 'swissEduPersonStudyBranch1',
SWISSEDUPERSON_OID+'7': 'swissEduPersonStudyBranch2',
SWISSEDUPERSON_OID+'8': 'swissEduPersonStudyBranch3',
SWISSEDUPERSON_OID+'9': 'swissEduPersonStudyLevel',
SWISSEDUPERSON_OID+'10': 'swissEduPersonStaffCategory',
SWISSEDUPERSON_OID+'11': 'swissEduPersonMatriculationNumber',
SWISSEDUPERSON_OID+'12': 'swissEduPersonCardUID',
SWISSEDUPERSON_OID+'13': 'swissEduID',
SWISSEDUPERSON_OID+'1023': 'swissLibraryPersonAffiliation',
SWISSEDUPERSON_OID+'1025': 'swissLibraryPersonResidence',
},
'to': {
'associatedDomain': UCL_DIR_PILOT+'37',
Expand Down Expand Up @@ -303,5 +319,20 @@
'userSMIMECertificate': NETSCAPE_LDAP+'40',
'x121Address': X500ATTR_OID+'24',
'x500UniqueIdentifier': X500ATTR_OID+'45',
'swissEduPersonUniqueID': SWISSEDUPERSON_OID+'1',
'swissEduPersonDateOfBirth': SWISSEDUPERSON_OID+'2',
'swissEduPersonGender': SWISSEDUPERSON_OID+'3',
'swissEduPersonHomeOrganization': SWISSEDUPERSON_OID+'4',
'swissEduPersonHomeOrganizationType': SWISSEDUPERSON_OID+'5',
'swissEduPersonStudyBranch1': SWISSEDUPERSON_OID+'6',
'swissEduPersonStudyBranch2': SWISSEDUPERSON_OID+'7',
'swissEduPersonStudyBranch3': SWISSEDUPERSON_OID+'8',
'swissEduPersonStudyLevel': SWISSEDUPERSON_OID+'9',
'swissEduPersonStaffCategory': SWISSEDUPERSON_OID+'10',
'swissEduPersonMatriculationNumber': SWISSEDUPERSON_OID+'11',
'swissEduPersonCardUID': SWISSEDUPERSON_OID+'12',
'swissEduID': SWISSEDUPERSON_OID+'13',
'swissLibraryPersonAffiliation': SWISSEDUPERSON_OID+'1023',
'swissLibraryPersonResidence': SWISSEDUPERSON_OID+'1025',
}
}
1 change: 1 addition & 0 deletions example/plugins/backends/saml2_backend.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ config:
local: [idp.xml]

entityid: <base_url>/<name>/proxy_saml2_backend.xml
attribute_map_dir: attributemaps
accepted_time_diff: 60
service:
sp:
Expand Down
1 change: 1 addition & 0 deletions example/plugins/frontends/saml2_frontend.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ config:
local: [sp.xml]

entityid: <base_url>/<name>/proxy.xml
attribute_map_dir: attributemaps
accepted_time_diff: 60
service:
idp:
Expand Down