|
23 | 23 | EIDAS_NATURALPERSON = 'http://eidas.europa.eu/attributes/naturalperson/'
|
24 | 24 | EIDAS_LEGALPERSON = 'http://eidas.europa.eu/attributes/legalperson/'
|
25 | 25 |
|
| 26 | +# SAML subject id specification |
| 27 | +# https://docs.oasis-open.org/security/saml-subject-id-attr/v1.0/cs01/saml-subject-id-attr-v1.0-cs01.html |
| 28 | +SAML_SUBJECT_ID = 'urn:oasis:names:tc:SAML:attribute:' |
| 29 | + |
26 | 30 | MAP = {
|
27 | 31 | 'identifier': 'urn:oasis:names:tc:SAML:2.0:attrname-format:uri',
|
28 | 32 | 'fro': {
|
|
109 | 113 | OPENOSI_OID+'109': 'osiOtherHomePhone',
|
110 | 114 | OPENOSI_OID+'120': 'osiWorkURL',
|
111 | 115 | PKCS_9+'1': 'email',
|
| 116 | + SAML_SUBJECT_ID+'subject-id': 'subject-id', |
| 117 | + SAML_SUBJECT_ID+'pairwise-id': 'pairwise-id', |
112 | 118 | SCHAC+'1': 'schacMotherTongue',
|
113 | 119 | SCHAC+'2': 'schacGender',
|
114 | 120 | SCHAC+'3': 'schacDateOfBirth',
|
|
280 | 286 | 'osiWorkURL': OPENOSI_OID+'120',
|
281 | 287 | 'ou': X500ATTR_OID+'11',
|
282 | 288 | 'owner': X500ATTR_OID+'32',
|
| 289 | + 'pairwise-id': SAML_SUBJECT_ID+'pairwise-id', |
283 | 290 | 'physicalDeliveryOfficeName': X500ATTR_OID+'19',
|
284 | 291 | 'postOfficeBox': X500ATTR_OID+'18',
|
285 | 292 | 'postalAddress': X500ATTR_OID+'16',
|
|
337 | 344 | 'sn': X500ATTR_OID+'4',
|
338 | 345 | 'st': X500ATTR_OID+'8',
|
339 | 346 | 'street': X500ATTR_OID+'9',
|
| 347 | + 'subject-id': SAML_SUBJECT_ID+'subject-id', |
340 | 348 | 'supportedAlgorithms': X500ATTR_OID+'52',
|
341 | 349 | 'supportedApplicationContext': X500ATTR_OID+'30',
|
342 | 350 | 'telephoneNumber': X500ATTR_OID+'20',
|
|
0 commit comments