italia / spid-sp-test

SAML2 SPID/CIE Service Provider validation tool
European Union Public License 1.2
38 stars 17 forks source link

get_indicepa_by_ipacode fails if result contains more AOO #103

Closed damikael closed 3 years ago

damikael commented 3 years ago

The result of function _get_indicepa_byipacode can contain more records because more AOO can be related to the same entity identified by IPA code. In this case the check "The IPACode element MUST have a valid value present on IPA" will fail.

I suggest to use, instead, the official WS05_AMM web service: https://indicepa.it/ipa-portale/dati-statistiche/web-service

https://github.com/italia/spid-sp-test/blob/436363af9eaf916213ff895fbc9bbcee91b14d19/src/spid_sp_test/metadata_public.py#L163