Deal with no subject_confirmation element present.
Changed version to 2.0.0, needed by pysaml2 dependent projects.
This commit is contained in:
2
setup.py
2
setup.py
@@ -66,7 +66,7 @@ if sys.version_info < (2, 7):
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='pysaml2',
|
name='pysaml2',
|
||||||
version='2.0.0beta',
|
version='2.0.0',
|
||||||
description='Python implementation of SAML Version 2 to be used in a WSGI environment',
|
description='Python implementation of SAML Version 2 to be used in a WSGI environment',
|
||||||
# long_description = read("README"),
|
# long_description = read("README"),
|
||||||
author='Roland Hedberg',
|
author='Roland Hedberg',
|
||||||
|
@@ -873,7 +873,9 @@ class AuthnResponse(StatusResponse):
|
|||||||
|
|
||||||
correct = 0
|
correct = 0
|
||||||
for subject_conf in self.assertion.subject.subject_confirmation:
|
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:
|
if subject_conf.subject_confirmation_data.address == address:
|
||||||
correct += 1
|
correct += 1
|
||||||
else:
|
else:
|
||||||
|
Reference in New Issue
Block a user