diff options
author | Roland Hedberg <roland.hedberg@adm.umu.se> | 2013-08-29 14:30:08 +0200 |
---|---|---|
committer | Roland Hedberg <roland.hedberg@adm.umu.se> | 2013-08-29 14:30:08 +0200 |
commit | ded56eb71f7f78f0e41aeef88fa92a65657ab41d (patch) | |
tree | 0adb97e2f52be34427d953b594e6c2165ad8d374 /src/saml2/assertion.py | |
parent | 1befd1364fda9aa32719cf32bc1c01b345f24574 (diff) | |
download | pysaml2-ded56eb71f7f78f0e41aeef88fa92a65657ab41d.tar.gz |
SubjectConfirmation was wrongly specified as singleton and not as list.
Diffstat (limited to 'src/saml2/assertion.py')
-rw-r--r-- | src/saml2/assertion.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/saml2/assertion.py b/src/saml2/assertion.py index b4536ba6..c94e6fa0 100644 --- a/src/saml2/assertion.py +++ b/src/saml2/assertion.py @@ -681,14 +681,15 @@ class Assertion(dict): subject=factory( saml.Subject, name_id=name_id, - subject_confirmation=factory( + subject_confirmation=[factory( saml.SubjectConfirmation, method=saml.SCM_BEARER, subject_confirmation_data=factory( saml.SubjectConfirmationData, in_response_to=in_response_to, recipient=consumer_url, - not_on_or_after=policy.not_on_or_after(sp_entity_id)))), + not_on_or_after=policy.not_on_or_after(sp_entity_id)))] + ), ) def apply_policy(self, sp_entity_id, policy, metadata=None): |