Forums, Documentation & Knowledge Base - ComponentSpace

Invalid Azure AD Metadata file base on SAMLValidator.Validate()


https://www.componentspace.com/forums/Topic11286.aspx

By dmitry.karabanovich - 11/24/2020

Hello everyone,
I am developing a Service Provider application where a user will be able to upload an Identity Provider metadata file to set up SAML SSO. Before getting configuration information about Identity Provider I call SAMLValidator.Validate() to validate uploaded xml file.
When this logic was implemented I tested this solution with a valid Azure AD metadata file (downloaded directly from Azure AD) and got two errors:
1. This is an invalid xsi:type 'http://docs.oasis-open.org/wsfed/federation/200706:SecurityTokenServiceType'.
2. This is an invalid xsi:type 'http://docs.oasis-open.org/wsfed/federation/200706:ApplicationServiceType'.

Could you please suggest what should be done to pass the validation and why directly downloaded metadata file from Azure AD does not pass validation?
The Azure AD metadata file is attached (some information has been replaced by ".............").

Thank you, Dmitry!
By ComponentSpace - 12/1/2020

You're very welcome.