Skip to content

Commit 30b613e

Browse files
author
Roland Hedberg
committed
Deal with no subject_confirmation element present.
Changed version to 2.0.0, needed by pysaml2 dependent projects.
1 parent 09f19c7 commit 30b613e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def run_tests(self):
6666

6767
setup(
6868
name='pysaml2',
69-
version='2.0.0beta',
69+
version='2.0.0',
7070
description='Python implementation of SAML Version 2 to be used in a WSGI environment',
7171
# long_description = read("README"),
7272
author='Roland Hedberg',

src/saml2/response.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,9 @@ def verify_attesting_entity(self, address):
873873

874874
correct = 0
875875
for subject_conf in self.assertion.subject.subject_confirmation:
876-
if subject_conf.subject_confirmation_data.address:
876+
if subject_conf.subject_confirmation_data is None:
877+
correct += 1 # In reality undefined
878+
elif subject_conf.subject_confirmation_data.address:
877879
if subject_conf.subject_confirmation_data.address == address:
878880
correct += 1
879881
else:

0 commit comments

Comments
 (0)