From 1dac75773eb7398a18d32d4f7e3920c900f37f4b Mon Sep 17 00:00:00 2001 From: Giuseppe De Marco Date: Wed, 21 Feb 2024 13:00:35 +0100 Subject: [PATCH] fix: SAML2 Issuer format SPID test 30, issuer MAY be omitted --- example/backends/spidsaml2_validator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/backends/spidsaml2_validator.py b/example/backends/spidsaml2_validator.py index 15e272a3..a83258b3 100644 --- a/example/backends/spidsaml2_validator.py +++ b/example/backends/spidsaml2_validator.py @@ -78,7 +78,7 @@ def validate_issuer(self): # 30 # check that this issuer is in the metadata... # L'attributo Format di Issuer della Response deve essere omesso o assumere valore urn:oasis:names:tc:SAML:2.0:nameid-format:entity. In questo test il valore รจ diverso. Risultato atteso: KO - if hasattr(self.response.issuer, "format"): + if hasattr(self.response.issuer, "format") and self.response.issuer.format: if ( self.response.issuer.format != "urn:oasis:names:tc:SAML:2.0:nameid-format:entity"