Skip to content

Commit

Permalink
Merge de1465b into 4736dd5
Browse files Browse the repository at this point in the history
  • Loading branch information
makizm committed Dec 9, 2018
2 parents 4736dd5 + de1465b commit 51a4c74
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libsaml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,9 @@ const libSaml = () => {
}
metadataCert = metadataCert.map(utility.normalizeCerString);
const certificateNode = select(".//*[local-name(.)='X509Certificate']", signatureNode) as any;
if (certificateNode.length === 0) {
throw new Error('ERR_UNMATCH_CERTIFICATE_DECLARATION_IN_METADATA');
}
let x509Certificate = certificateNode[0].firstChild.data;
x509Certificate = utility.normalizeCerString(x509Certificate);
if (includes(metadataCert, x509Certificate)) {
Expand Down

0 comments on commit 51a4c74

Please sign in to comment.