Skip to content

Commit

Permalink
Normalizing x509Certificate during cert matching (#108)
Browse files Browse the repository at this point in the history
* Normalizing x509Certificate

* Update libsaml.ts
  • Loading branch information
puneetmakkar authored and tngan committed Jul 25, 2017
1 parent 286dd73 commit a6e0219
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libsaml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,8 @@ const libSaml = () => {
metadataCert = [metadataCert];
}
metadataCert = metadataCert.map(utility.normalizeCerString);
const x509Certificate = select("//*[local-name(.)='X509Certificate']", s)[0].firstChild.data;
let x509Certificate = select("//*[local-name(.)='X509Certificate']", s)[0].firstChild.data;
x509Certificate = utility.normalizeCerString(x509Certificate);
if (includes(metadataCert, x509Certificate)) {
selectedCert = x509Certificate;
}
Expand Down

0 comments on commit a6e0219

Please sign in to comment.