diff options
author | Roland Hedberg <roland.hedberg@adm.umu.se> | 2014-03-21 08:59:52 +0100 |
---|---|---|
committer | Roland Hedberg <roland.hedberg@adm.umu.se> | 2014-03-21 08:59:52 +0100 |
commit | 30b613ebb2a30ad00d886e6f9fc08716b54daf92 (patch) | |
tree | 8e9932822b94fd4e9f90c17ed983dd5d18f86ae0 | |
parent | 09f19c77336be2db0e5f710e905a353ea3a793fe (diff) | |
download | pysaml2-30b613ebb2a30ad00d886e6f9fc08716b54daf92.tar.gz |
Deal with no subject_confirmation element present.2.0.0
Changed version to 2.0.0, needed by pysaml2 dependent projects.
-rwxr-xr-x | setup.py | 2 | ||||
-rw-r--r-- | src/saml2/response.py | 4 |
2 files changed, 4 insertions, 2 deletions
@@ -66,7 +66,7 @@ if sys.version_info < (2, 7): setup( name='pysaml2', - version='2.0.0beta', + version='2.0.0', description='Python implementation of SAML Version 2 to be used in a WSGI environment', # long_description = read("README"), author='Roland Hedberg', diff --git a/src/saml2/response.py b/src/saml2/response.py index b987130e..3c6bfa34 100644 --- a/src/saml2/response.py +++ b/src/saml2/response.py @@ -873,7 +873,9 @@ class AuthnResponse(StatusResponse): correct = 0 for subject_conf in self.assertion.subject.subject_confirmation: - if subject_conf.subject_confirmation_data.address: + if subject_conf.subject_confirmation_data is None: + correct += 1 # In reality undefined + elif subject_conf.subject_confirmation_data.address: if subject_conf.subject_confirmation_data.address == address: correct += 1 else: |