Skip to content

Commit 5248680

Browse files
authored
Merge pull request #76 from sebastiencand/master
fixed certificat namespace when checking signature
2 parents fd5aa3f + 210c25b commit 5248680

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/SAML2/Utils/XmlSignatureUtils.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ private static void CheckDocument(XmlElement el)
378378
private static List<X509Certificate2> GetCertificates(XmlDocument doc)
379379
{
380380
var certificates = new List<X509Certificate2>();
381-
var nodeList = doc.GetElementsByTagName("ds:X509Certificate");
381+
var nodeList = doc.GetElementsByTagName("X509Certificate", Saml20Constants.Xmldsig);
382382
if (nodeList.Count == 0)
383383
{
384384
nodeList = doc.GetElementsByTagName("X509Certificate");

0 commit comments

Comments
 (0)