From 63c59fc78e134227a639bab595416cc2bfe17e2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Pe=C5=A1ek?= Date: Wed, 20 Nov 2024 10:00:35 +0100 Subject: [PATCH] Fix #555: FIDO2 Test Application: CredentialResponse debug message (#556) --- .../src/main/webapp/resources/js/webauthn.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/powerauth-fido2-tests/src/main/webapp/resources/js/webauthn.js b/powerauth-fido2-tests/src/main/webapp/resources/js/webauthn.js index 7fa2aac4..995f9b1d 100644 --- a/powerauth-fido2-tests/src/main/webapp/resources/js/webauthn.js +++ b/powerauth-fido2-tests/src/main/webapp/resources/js/webauthn.js @@ -11,8 +11,7 @@ async function createCredential(userDetails, applicationId) { const credential = await navigator.credentials.create({ publicKey: options }); - console.log("Public Key Credential") - console.log(JSON.stringify(credential, null, 2)); + console.log("Public Key Credential Created") const registerResponse = await registerCredentials(userDetails.userId, applicationId, credential) console.log("PowerAuth Registration Response") @@ -31,8 +30,7 @@ async function requestCredential(userId, applicationId, templateName, operationP publicKey: options }); - console.log("Public Key Credential") - console.log(JSON.stringify(credential, null, 2)); + console.log("Public Key Credential Retrieved") const authenticateResponse = await verifyAssertion(applicationId, options.challenge, credential) console.log("PowerAuth Authentication Response")