Skip to content

Commit 55d1222

Browse files
authored
Merge pull request #250 from magento-borg/MC-35119
MC-35119: U2F Key registration error in Chrome on Ubuntu
2 parents 0a32b7c + c12081a commit 55d1222

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

TwoFactorAuth/Model/Provider/Engine/U2fKey/WebAuthn.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,9 @@ public function getPublicKeyFromRegistrationData(array $data): array
298298
return [
299299
'key' => $attestationObject['attestationData']['keyBytes'],
300300
'id' => $credentialData['id'],
301-
'aaguid' => $attestationObject['attestationData']['aaguid'] ?? null
301+
'aaguid' => empty($attestationObject['attestationData']['aaguid'])
302+
? null
303+
: base64_encode($attestationObject['attestationData']['aaguid'])
302304
];
303305
}
304306

0 commit comments

Comments
 (0)