Skip to content

Commit

Permalink
Merge pull request #58 from isprambiente/57-spid-sp-test-check-failed…
Browse files Browse the repository at this point in the history
…-on-samlattributestatementsamlattributestatement

Fix test 99
  • Loading branch information
Giuseppe De Marco authored Oct 4, 2022
2 parents a5a1a37 + 8484c84 commit 609b1b5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions example/backends/spidsaml2_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,13 @@ def validate_assertion_authn_statement(self):
"Assertion attribute_statement.attribute is missing/invalid. "
f"{_ERROR_TROUBLESHOOT}"
)
# 99
for attro in attri.attribute:
if not attro.attribute_value:
raise SPIDValidatorException(
"Assertion attribute_value is missing/invalid. "
f"{_ERROR_TROUBLESHOOT}"
)

def run(self, tests=[]):
"""run all tests/methods"""
Expand Down

0 comments on commit 609b1b5

Please sign in to comment.