From abcc1dec69a54327b5f29e7df112cae1763ea3d0 Mon Sep 17 00:00:00 2001 From: Ivan Kanakarakis Date: Fri, 24 Feb 2023 11:13:42 +0100 Subject: [PATCH] Fix subject-id requirements processing Signed-off-by: Ivan Kanakarakis --- src/saml2/assertion.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/saml2/assertion.py b/src/saml2/assertion.py index 54d96172c..4c0ab1511 100644 --- a/src/saml2/assertion.py +++ b/src/saml2/assertion.py @@ -561,7 +561,7 @@ def restrict(self, ava, sp_entity_id, metadata=None): requirements_subject_id = metadata_store.subject_id_requirement(sp_entity_id) if metadata_store else [] for r in requirements_subject_id: if r not in required_attributes: - required_attributes.extend(r) + required_attributes.append(r) return self.filter( ava, sp_entity_id,