How to authenticate with SAML in ASP.NET Core and C#

David Kintgen

Hello,

This is a great tutorial. However, I am running into the same issue as James Gardner mentioned where I am getting a DTD processing error:

XmlException: For security reasons DTD is prohibited in this XML document. To enable DTD processing set the DtdProcessing property on XmlReaderSettings to Parse and pass the settings into XmlReader.Create method.

I am not quite sure what James means by his description of how he solved it; can you provide any guidance on how to fix this issue?