Skip to content

Commit

Permalink
Merge 792e093 into d7e47c6
Browse files Browse the repository at this point in the history
  • Loading branch information
kvcpr committed Mar 8, 2019
2 parents d7e47c6 + 792e093 commit 479c7c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libsaml.ts
Expand Up @@ -364,7 +364,7 @@ const libSaml = () => {
if (selectedCert === null) {
throw new Error('NO_SELECTED_CERTIFICATE');
}
if (metadataCert.length > 1 && !includes(metadataCert, selectedCert)) {
if (metadataCert.length >= 1 && !includes(metadataCert, selectedCert)) {
// keep this restriction for rolling certificate usage
// to make sure the response certificate is one of those specified in metadata
throw new Error('ERROR_UNMATCH_CERTIFICATE_DECLARATION_IN_METADATA');
Expand Down

0 comments on commit 479c7c4

Please sign in to comment.