AADSTS7500525: There was an XML error in the SAML message. Verify that the XML content of the SAML messages conforms to the SAML protocol specifications.

Hi Team ,

Suddenly, I started facing the below issue. and not getting root cause of it.
using ComponentSpace.Saml2.Licensed 4.8.0, for SP initiated flow.

Using below method -
await _samlServiceProvider.InitiateSsoAsync(partnerName, relayState, ssoOptions);

Error Message -

AADSTS7500525: There was an XML error in the SAML message at line 1, position 540. Verify that the XML content of the SAML messages conforms to the SAML protocol specifications.
When I did research on the error - I learned that required field in SAML Request is missing .
When investigate the SAML Request I found the Issuer is missing in SAML Request.
Attaching the Logs for your reference. Please guide on this issue.



The issuer field comes from the LocalServiceProviderConfiguration.Name.

Your custom configuration resolver is returning null for this value.