diff options
author | benjaminbecker <34645182+benjaminbecker@users.noreply.github.com> | 2019-08-22 11:08:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-22 11:08:17 +0200 |
commit | 86233c3b7988de693b55a2ed750be609aae1e7cc (patch) | |
tree | 8165f4d58500233887d451984318816918f4c7e1 | |
parent | 09c36b2db162fac448a4b8427c5a8bd9643f1d4a (diff) | |
download | pysaml2-86233c3b7988de693b55a2ed750be609aae1e7cc.tar.gz |
Update saml_uri.py
According to https://tools.ietf.org/html/rfc2985 the urn for emailAddress has to be `1.2.840.113549.1.9.1`.
In saml_uri.py this is not implemented correctly. The current version uses `PKCS_9+'1'` which equals to `1.2.840.113549.1.9.1.1`. This can be fixed by deleting the trailing '1.' from line 8. This should not cause any side-effects, because the variable `PKCS_9` in combination with `+'1'`.
-rw-r--r-- | example/attributemaps/saml_uri.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/example/attributemaps/saml_uri.py b/example/attributemaps/saml_uri.py index 1c9d3730..c4a16962 100644 --- a/example/attributemaps/saml_uri.py +++ b/example/attributemaps/saml_uri.py @@ -5,7 +5,7 @@ X500ATTR_OID = "urn:oid:2.5.4." NOREDUPERSON_OID = "urn:oid:1.3.6.1.4.1.2428.90.1." NETSCAPE_LDAP = "urn:oid:2.16.840.1.113730.3.1." UCL_DIR_PILOT = 'urn:oid:0.9.2342.19200300.100.1.' -PKCS_9 = "urn:oid:1.2.840.113549.1.9.1." +PKCS_9 = "urn:oid:1.2.840.113549.1.9." UMICH = "urn:oid:1.3.6.1.4.1.250.1.57." MAP = { @@ -196,4 +196,4 @@ MAP = { 'labeledURI': UMICH+'57', 'uid': UCL_DIR_PILOT+'1' } -}
\ No newline at end of file +} |