Microsoft Azure IdP "metadata not found" pages are not recognised correctly
Summary
For Microsoft Azure-based IdPs who did not configure the required SP metadata, the ECCS checks return "WARNING / Unable-to-Check", despite the presence of a metadata-not-found like page which should result in ERROR / No-SP-Metadata-Error
Steps to reproduce
Observe the result of the check
What is the current bug behavior?
Check result is WARNING / Unable-To-Check
This is incorrect because this result should by definition be issued only in the case '... and do not return messages like "/No return endpoint available for relying party/" or "/No metadata found for relying party/"'.
What is the expected correct behavior?
Check result should be ERROR / No-SP-Metadata-Error
This would be correct because the definition for this case is 'IdPs that return a message like "No return endpoint available for relying party" or "No metadata found for relying party" instead of the Login Page.'
Relevant logs and/or screenshots
Error message on the MS Azure login page:
Sign in Sorry, but we’re having trouble signing you in.
AADSTS700016: Application with identifier 'https://sp-demo.idem.garr.it/shibboleth' was not found in the directory 'University of Luxembourg Competence Centre'. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You may have sent your authentication request to the wrong tenant.