Fixed FIDO2 USB keys with PIN codes.

This commit is contained in:
Ylian Saint-Hilaire 2020-07-24 11:21:06 -07:00
parent 80b4625c01
commit 6042f60e89

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);