diff options
author | Matthew Miller <matthew@millerti.me> | 2020-07-07 18:53:24 -0700 |
---|---|---|
committer | Matthew Miller <matthew@millerti.me> | 2020-07-07 18:53:24 -0700 |
commit | 9a92d53775bd3fc172c939021f8ad94d4dc71643 (patch) | |
tree | 0535e2299c1857d9176b2fb8fab1825c9505f91d | |
parent | 8f4a077bad6e9d813655a8640cbe1ea159a6521a (diff) |
Throw error when unlisted aaguid is encountered
-rw-r--r-- | packages/server/src/metadata/metadataService.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/server/src/metadata/metadataService.ts b/packages/server/src/metadata/metadataService.ts index 8f63e3c..db6d963 100644 --- a/packages/server/src/metadata/metadataService.ts +++ b/packages/server/src/metadata/metadataService.ts @@ -85,7 +85,9 @@ class MetadataService { const cached = this.cache[aaguid]; if (!cached) { - return; + // TODO: FIDO conformance requires this, but it seems excessive for WebAuthn. Investigate + // later + throw new Error(`Unlisted aaguid "${aaguid}" in TOC`); } // Check to see if the this aaguid has a status report with a "compromised" status |