From 9a7757086c50e89ea5e9a560820a5abd5fc10c7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20=C3=85berg?= Date: Tue, 12 Nov 2024 20:32:39 +0100 Subject: [PATCH] Fix attestationObj camelCase (#576) --- Demo/wwwroot/js/custom.register.js | 2 +- Demo/wwwroot/js/mfa.register.js | 2 +- Demo/wwwroot/js/passwordless.register.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Demo/wwwroot/js/custom.register.js b/Demo/wwwroot/js/custom.register.js index c2e35ae4..e0199423 100644 --- a/Demo/wwwroot/js/custom.register.js +++ b/Demo/wwwroot/js/custom.register.js @@ -124,7 +124,7 @@ async function registerNewCredential(newCredential) { type: newCredential.type, extensions: newCredential.getClientExtensionResults(), response: { - AttestationObject: coerceToBase64Url(attestationObject), + attestationObject: coerceToBase64Url(attestationObject), clientDataJSON: coerceToBase64Url(clientDataJSON), transports: newCredential.response.getTransports() }, diff --git a/Demo/wwwroot/js/mfa.register.js b/Demo/wwwroot/js/mfa.register.js index 382cbe32..463aa5ae 100644 --- a/Demo/wwwroot/js/mfa.register.js +++ b/Demo/wwwroot/js/mfa.register.js @@ -129,7 +129,7 @@ async function registerNewCredential(newCredential) { type: newCredential.type, extensions: newCredential.getClientExtensionResults(), response: { - AttestationObject: coerceToBase64Url(attestationObject), + attestationObject: coerceToBase64Url(attestationObject), clientDataJSON: coerceToBase64Url(clientDataJSON), transports: newCredential.response.getTransports() } diff --git a/Demo/wwwroot/js/passwordless.register.js b/Demo/wwwroot/js/passwordless.register.js index d6b515ce..b287bc4b 100644 --- a/Demo/wwwroot/js/passwordless.register.js +++ b/Demo/wwwroot/js/passwordless.register.js @@ -126,7 +126,7 @@ async function registerNewCredential(newCredential) { type: newCredential.type, extensions: newCredential.getClientExtensionResults(), response: { - AttestationObject: coerceToBase64Url(attestationObject), + attestationObject: coerceToBase64Url(attestationObject), clientDataJSON: coerceToBase64Url(clientDataJSON), transports: newCredential.response.getTransports() }