Gitlab CSE Unil

shib_settings.py 3.38 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
SHIB_ATTRIBUTES = {
    'affiliation': 'affiliation',
    'assurance': 'assurance',
    'cardUID': 'cardUID',
    'cn': 'cn',
    'dateOfBirth': 'dateOfBirth',
    'displayName': 'displayName',
    'employeeNumber': 'employeeNumber',
    'entitlement': 'entitlement',
    'gender': 'gender',
    'givenName': 'givenName',
    'homeOrganization': 'homeOrganization',
    'homeOrganizationType': 'homeOrganizationType',
    'homePhone': 'homePhone',
    'homePostalAddress': 'homePostalAddress',
    'isMemberOf': 'isMemberOf',
    'mail': 'mail',
    'matriculationNumber': 'matriculationNumber',
    'mobile': 'mobile',
    'nickname': 'nickname',
    'org-dn': 'org-dn',
    'orgunit-dn': 'orgunit-dn',
    'ou': 'ou',
    'persistent-id': 'persistent-id',
    'postalAddress': 'postalAddress',
    'preferredLanguage': 'preferredLanguage',
    'primary-orgunit-dn': 'primary-orgunit-dn',
    'primaryGroupID': 'primaryGroupID',
    'schacHomeOrganization': 'schacHomeOrganization',
    'schacHomeOrganizationType': 'schacHomeOrganizationType',
    'scoped-affiliation': 'scoped-affiliation',
    'staffCategory': 'staffCategory',
    'studyBranch1': 'studyBranch1',
    'studyBranch2': 'studyBranch2',
    'studyBranch3': 'studyBranch3',
    'studyLevel': 'studyLevel',
    'surname': 'surname',
    'targeted-id': 'targeted-id',
    'telephoneNumber': 'telephoneNumber',
    'uid': 'uid',
    'uniqueID': 'uniqueID',
}

SHIB_ATTR_ALIASES = {
    'Shib-EP-Affiliation': 'affiliation',
    'Shib-EP-Assurance': 'assurance',
    'Shib-EP-CommonName': 'cn',
    'Shib-EP-DisplayName': 'displayName',
    'Shib-EP-Entitlement': 'entitlement',
    'Shib-EP-OrgDN': 'org-dn',
    'Shib-EP-OrgUnitDN': 'orgunit-dn',
    'Shib-InetOrgPerson-employeeNumber': 'employeeNumber',
    'Shib-InetOrgPerson-givenName': 'givenName',
    'Shib-InetOrgPerson-homePhone': 'homePhone',
    'Shib-InetOrgPerson-homePostalAddress': 'homePostalAddress',
    'Shib-InetOrgPerson-mail': 'mail',
    'Shib-InetOrgPerson-mobile': 'mobile',
    'Shib-InetOrgPerson-preferredLanguage': 'preferredLanguage',
    'Shib-OrgPerson-postalAddress': 'postalAddress',
    'Shib-Person-ou': 'ou',
    'Shib-Person-surname': 'surname',
    'Shib-Person-telephoneNumber': 'telephoneNumber',
    'Shib-Person-uid': 'uid',
    'Shib-SCHAC-HomeOrganization': 'schacHomeOrganization',
    'Shib-SCHAC-HomeOrganizationType': 'schacHomeOrganizationType',
    'Shib-SwissEP-CardUID': 'cardUID',
    'Shib-SwissEP-DateOfBirth': 'dateOfBirth',
    'Shib-SwissEP-Gender': 'gender',
    'Shib-SwissEP-HomeOrganization': 'homeOrganization',
    'Shib-SwissEP-HomeOrganizationType': 'homeOrganizationType',
    'Shib-SwissEP-MatriculationNumber': 'matriculationNumber',
    'Shib-SwissEP-StaffCategory': 'staffCategory',
    'Shib-SwissEP-StudyBranch1': 'studyBranch1',
    'Shib-SwissEP-StudyBranch2': 'studyBranch2',
    'Shib-SwissEP-StudyBranch3': 'studyBranch3',
    'Shib-SwissEP-StudyLevel': 'studyLevel',
    'Shib-SwissEP-UniqueID': 'uniqueID',
    'Shib-SwissEP-swissEduPersonStaffCategory': 'staffCategory',
    'Shib-SwissEP-swissEduPersonStudyBranch1': 'studyBranch1',
    'Shib-SwissEP-swissEduPersonStudyBranch2': 'studyBranch2',
    'Shib-SwissEP-swissEduPersonStudyBranch3': 'studyBranch3',
    'Shib-SwissEP-swissEduPersonStudyLevel': 'studyLevel',
    'Shib-eduMember-isMemberOf': 'isMemberOf',
    'Shib-primaryGroupID': 'primaryGroupID',
    'orgDN': 'org-dn',
    'orgUnitDN': 'orgunit-dn',
}