mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-24 06:23:39 +03:00
Fixed FIDO2 USB keys with PIN codes.
This commit is contained in:
parent
80b4625c01
commit
6042f60e89
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user