Skip to content

Commit 076563b

Browse files
committed
The requested attributes may be missing from the ACS
Signed-off-by: Ivan Kanakarakis <[email protected]>
1 parent 55fa924 commit 076563b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/saml2/mdstore.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def attribute_requirement(entity_descriptor, index=None):
207207
if index is not None and acs["index"] != index:
208208
continue
209209

210-
for attr in acs["requested_attribute"]:
210+
for attr in (acs.get("requested_attribute") or []):
211211
if attr.get("is_required") == "true":
212212
res["required"].append(attr)
213213
else:

0 commit comments

Comments
 (0)