Skip to content

Commit ded56eb

Browse files
author
Roland Hedberg
committed
SubjectConfirmation was wrongly specified as singleton and not as list.
1 parent 1befd13 commit ded56eb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/saml2/assertion.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -681,14 +681,15 @@ def construct(self, sp_entity_id, in_response_to, consumer_url,
681681
subject=factory(
682682
saml.Subject,
683683
name_id=name_id,
684-
subject_confirmation=factory(
684+
subject_confirmation=[factory(
685685
saml.SubjectConfirmation,
686686
method=saml.SCM_BEARER,
687687
subject_confirmation_data=factory(
688688
saml.SubjectConfirmationData,
689689
in_response_to=in_response_to,
690690
recipient=consumer_url,
691-
not_on_or_after=policy.not_on_or_after(sp_entity_id)))),
691+
not_on_or_after=policy.not_on_or_after(sp_entity_id)))]
692+
),
692693
)
693694

694695
def apply_policy(self, sp_entity_id, policy, metadata=None):

0 commit comments

Comments
 (0)