Show Attestation Object
This commit is contained in:
Родитель
7d55649ddd
Коммит
c2532ec7f0
2
fido.js
2
fido.js
|
@ -118,7 +118,7 @@ fido.makeCredential = async (uid, attestation) => {
|
|||
authenticatorDataHex: attestationObject.authData.toString('hex').toUpperCase(),
|
||||
extensionDataHex: defaultTo(authenticatorData.extensionDataHex, "No extension data"),
|
||||
authenticatorData: attestation.authenticatorData,
|
||||
attestationObject: attestation.attestationObject,
|
||||
attestationObject: attestation.attestationObjectHex,
|
||||
clientDataJSON: attestation.clientDataJSON,
|
||||
publicKey2: attestation.publicKey,
|
||||
publicKeyAlgorithm: attestation.publicKeyAlgorithm,
|
||||
|
|
|
@ -406,9 +406,9 @@
|
|||
<span id="creationData_attestationStatementChainJSON"></span>
|
||||
</p>
|
||||
<p>
|
||||
<b>Attestation Statement in Hex</b>
|
||||
<b>Attestation Object</b>
|
||||
<br>
|
||||
<span id="creationData_attestationStatementHex"></span>
|
||||
<span id="creationData_attestationObject"></span>
|
||||
</p>
|
||||
<p>
|
||||
<b>PRF First</b>
|
||||
|
|
|
@ -458,6 +458,7 @@
|
|||
publicKeyAlgorithm: attestation.response.getPublicKeyAlgorithm(),
|
||||
clientDataJSON: arrayBufferToUTF8(attestation.response.clientDataJSON),
|
||||
attestationObject: arrayBufferToBase64(attestation.response.attestationObject),
|
||||
attestationObjectHex: arrayBufferToHexString(attestation.response.attestationObject),
|
||||
prfEnabled: prfEnabled,
|
||||
prfFirst: prfFirstHex,
|
||||
prfSecond: prfSecondHex,
|
||||
|
@ -803,7 +804,7 @@
|
|||
publicKeyType += "(" + credential.creationData.publicKeyAlgorithm +") ";
|
||||
}
|
||||
|
||||
$("#creationData_attestationStatementHex").text(credential.creationData.attestationStatementHex);
|
||||
$("#creationData_attestationObject").text(credential.creationData.attestationObject);
|
||||
$("#creationData_attestationStatementChainJSON").text(credential.creationData.attestationStatementChainJSON);
|
||||
$("#creationData_authenticatorData").text(credential.creationData.authenticatorDataSummary);
|
||||
$("#creationData_authenticatorDataHex").text(credential.creationData.authenticatorDataHex);
|
||||
|
|
Загрузка…
Ссылка в новой задаче