Skip to content

Commit

Permalink
saml frontend: remove metadata param when applying the set policy
Browse files Browse the repository at this point in the history
This param was deprecated by pysaml2 v6.3.0

Signed-off-by: Ivan Kanakarakis <[email protected]>
  • Loading branch information
c00kiemon5ter committed Jun 8, 2023
1 parent 501a63a commit 770ad42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/satosa/frontends/saml2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 770ad42

Please sign in to comment.