summaryrefslogtreecommitdiff
path: root/tests/test_82_pefim.py
diff options
context:
space:
mode:
authorHans Hörberg <hans.horberg@umu.se>2015-05-04 13:15:21 +0200
committerHans Hörberg <hans.horberg@umu.se>2015-05-04 13:15:21 +0200
commit2942e0fc753aca6a3e62fa738eddc43e41aa5f6b (patch)
tree3bfec5d0f67d47decd05d041f7babb760eaa2443 /tests/test_82_pefim.py
parent00a3a04ade78d40f5c3245eec52d88bbe8525547 (diff)
downloadpysaml2-2942e0fc753aca6a3e62fa738eddc43e41aa5f6b.tar.gz
Correction for PEFIM.
<AuthnRequest> elements must contain the encryption certificate used to encrypt the assertion with the attribute statement. The encryption key is represented within a <ds:KeyInfo> element. Its XPath is: /samlp:AuthnRequest/samlp:extension/pefim:SPCertEnc/ds:KeyInfo/ ds:X509Data/ds:X509Certificate.
Diffstat (limited to 'tests/test_82_pefim.py')
-rw-r--r--tests/test_82_pefim.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_82_pefim.py b/tests/test_82_pefim.py
index cc82551c..f40608c5 100644
--- a/tests/test_82_pefim.py
+++ b/tests/test_82_pefim.py
@@ -48,5 +48,5 @@ _elem = extension_elements_to_elements(parsed.extensions.extension_elements,
assert len(_elem) == 1
_spcertenc = _elem[0]
-_cert = _spcertenc.x509_data[0].x509_certificate.text
+_cert = _spcertenc.key_info[0].x509_data[0].x509_certificate.text
assert cert == _cert