Fixed FIDO2 USB keys with PIN codes.

This commit is contained in:
Ylian Saint-Hilaire 2020-07-24 11:21:06 -07:00
parent 6a21eedb08
commit a2a47a1320
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ module.exports.CreateWebAuthnModule = function () {
const response = { 'verified': false };
if ((ctapMakeCredResp.fmt === 'none') || (ctapMakeCredResp.fmt === 'fido-u2f')) {
if ((ctapMakeCredResp.fmt === 'none') || (ctapMakeCredResp.fmt === 'fido-u2f') || (ctapMakeCredResp.fmt === 'packed')) {
if (!(authrDataStruct.flags & 0x01)) { throw new Error('User was NOT presented during authentication!'); } // U2F_USER_PRESENTED
const publicKey = COSEECDHAtoPKCS(authrDataStruct.COSEPublicKey);