italia / spid-express

Express middleware implementing SPID & Entra con CIE (Carta d'Identità Elettronica)
MIT License
40 stars 16 forks source link

Spid Quality Assurance - errors in AuthnRequests #42

Open peppelinux opened 3 years ago

peppelinux commented 3 years ago

Using

python3 src/spid_sp_test/spid_sp_test --metadata-url http://localhost:3000/metadata --authn-url http://localhost:3000/login?entityID=testenv2 --debug ERROR --extra
ERROR:spid_sp_test.authn_request:RelayState is missing - TR pag. 14 or pag. 15
ERROR:spid_sp_test.authn_request:AuthnRequest Signature validation failed
ERROR:spid_sp_test.authn_request:The ForceAuthn attribute must be present because of minimum/SpidL1
ERROR:spid_sp_test.authn_request:The ForceAuthn attribute must be True because of minimum/SpidL1
Spid QA: executed 151 tests, 4 failed.
peppelinux commented 3 years ago

also related to this https://github.com/italia/spid-express/issues/32

peppelinux commented 2 years ago

At this time we have the following result. Do we have to configure the CI for a private profile (--profile spid-sp-private)

spid_sp_test --metadata-url http://localhost:3000/metadata --extra --debug ERROR --exit-zero

ERROR:spid_sp_test.metadata:SpidSpMetadataCheckExtra.test_contactperson_email: The //ContactPerson/EmailAddress element MUST be present
ERROR:spid_sp_test.metadata:The //ContactPerson/EmailAddress element MUST be present
ERROR:spid_sp_test.metadata:SpidSpMetadataCheckExtra.test_Contacts_PubPriv: ContactPerson MUST be present
ERROR:spid_sp_test.metadata:ContactPerson MUST be present
ERROR:spid_sp_test.metadata:SpidSpMetadataCheckExtra.test_Contacts_PubPriv: Only one ContactPerson element of contactType "other" MUST be present
ERROR:spid_sp_test.metadata:Only one ContactPerson element of contactType "other" MUST be present
ERROR:spid_sp_test.metadata:SpidSpMetadataCheckExtra.test_extensions_public_private: Missing ContactPerson/Extensions/Public, this element MUST be present
Spid QA: executed 88 tests, 4 failed. 0 warnings.
ERROR:spid_sp_test.metadata:Missing ContactPerson/Extensions/Public, this element MUST be present