diff --git a/src/satosa/frontends/saml2.py b/src/satosa/frontends/saml2.py index 655e6da68..379635fc2 100644 --- a/src/satosa/frontends/saml2.py +++ b/src/satosa/frontends/saml2.py @@ -282,7 +282,7 @@ def _get_approved_attributes(self, idp, idp_policy, sp_entity_id, state): for aconv in attrconvs: if aconv.name_format == name_format: all_attributes = {v: None for v in aconv._fro.values()} - attribute_filter = list(idp_policy.restrict(all_attributes, sp_entity_id, idp.metadata).keys()) + attribute_filter = list(idp_policy.restrict(all_attributes, sp_entity_id).keys()) break attribute_filter = self.converter.to_internal_filter(self.attribute_profile, attribute_filter) msg = "Filter: {}".format(attribute_filter)