summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Stuart <alex.stuart@jisc.ac.uk>2019-04-14 16:07:34 +0100
committerAlex Stuart <alex.stuart@jisc.ac.uk>2019-04-14 16:07:34 +0100
commit6d611b715ca11b2f8250024ba6a8d6f3377609a3 (patch)
tree742ccf1d1a896d482b0fdd3a8662e475be9cf669
parent0b397fc4d4b6a41ae9f12c1e52e1f44d185430ef (diff)
downloadpysaml2-6d611b715ca11b2f8250024ba6a8d6f3377609a3.tar.gz
Add SAML subject identifier attributes to saml2_uri attributemap
-rw-r--r--src/saml2/attributemaps/saml_uri.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/saml2/attributemaps/saml_uri.py b/src/saml2/attributemaps/saml_uri.py
index 40f7b778..608fcc28 100644
--- a/src/saml2/attributemaps/saml_uri.py
+++ b/src/saml2/attributemaps/saml_uri.py
@@ -23,6 +23,10 @@ OPENOSI_OID = 'urn:oid:1.3.6.1.4.1.27630.2.1.1.'
EIDAS_NATURALPERSON = 'http://eidas.europa.eu/attributes/naturalperson/'
EIDAS_LEGALPERSON = 'http://eidas.europa.eu/attributes/legalperson/'
+# SAML subject id specification
+# https://docs.oasis-open.org/security/saml-subject-id-attr/v1.0/cs01/saml-subject-id-attr-v1.0-cs01.html
+SAML_SUBJECT_ID = 'urn:oasis:names:tc:SAML:attribute:'
+
MAP = {
'identifier': 'urn:oasis:names:tc:SAML:2.0:attrname-format:uri',
'fro': {
@@ -109,6 +113,8 @@ MAP = {
OPENOSI_OID+'109': 'osiOtherHomePhone',
OPENOSI_OID+'120': 'osiWorkURL',
PKCS_9+'1': 'email',
+ SAML_SUBJECT_ID+'subject-id': 'subject-id',
+ SAML_SUBJECT_ID+'pairwise-id': 'pairwise-id',
SCHAC+'1': 'schacMotherTongue',
SCHAC+'2': 'schacGender',
SCHAC+'3': 'schacDateOfBirth',
@@ -280,6 +286,7 @@ MAP = {
'osiWorkURL': OPENOSI_OID+'120',
'ou': X500ATTR_OID+'11',
'owner': X500ATTR_OID+'32',
+ 'pairwise-id': SAML_SUBJECT_ID+'pairwise-id',
'physicalDeliveryOfficeName': X500ATTR_OID+'19',
'postOfficeBox': X500ATTR_OID+'18',
'postalAddress': X500ATTR_OID+'16',
@@ -337,6 +344,7 @@ MAP = {
'sn': X500ATTR_OID+'4',
'st': X500ATTR_OID+'8',
'street': X500ATTR_OID+'9',
+ 'subject-id': SAML_SUBJECT_ID+'subject-id',
'supportedAlgorithms': X500ATTR_OID+'52',
'supportedApplicationContext': X500ATTR_OID+'30',
'telephoneNumber': X500ATTR_OID+'20',