Skip to content

Commit

Permalink
The requested attributes may be missing from the ACS
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
  • Loading branch information
c00kiemon5ter committed Nov 7, 2023
1 parent 55fa924 commit 076563b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/saml2/mdstore.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def attribute_requirement(entity_descriptor, index=None):
if index is not None and acs["index"] != index:
continue

for attr in acs["requested_attribute"]:
for attr in (acs.get("requested_attribute") or []):
if attr.get("is_required") == "true":
res["required"].append(attr)
else:
Expand Down

0 comments on commit 076563b

Please sign in to comment.