diff --git a/BlazorWasmDemo/Server/Controllers/UserController.cs b/BlazorWasmDemo/Server/Controllers/UserController.cs index e34d91b7..8a12c04d 100644 --- a/BlazorWasmDemo/Server/Controllers/UserController.cs +++ b/BlazorWasmDemo/Server/Controllers/UserController.cs @@ -173,7 +173,7 @@ public async Task CreateCredentialAsync([FromRoute] string username, [Fr IsBackupEligible = result.Result.IsBackupEligible, IsBackedUp = result.Result.IsBackedUp, AttestationObject = result.Result.AttestationObject, - AttestationClientDataJSON = result.Result.AttestationClientDataJson, + AttestationClientDataJson = result.Result.AttestationClientDataJson, }); // 5. Now we need to remove the options from the pending dictionary diff --git a/Demo/Controller.cs b/Demo/Controller.cs index f4ee83ca..50b9389f 100644 --- a/Demo/Controller.cs +++ b/Demo/Controller.cs @@ -131,7 +131,7 @@ public async Task MakeCredential([FromBody] AuthenticatorAttestation IsBackupEligible = success.Result.IsBackupEligible, IsBackedUp = success.Result.IsBackedUp, AttestationObject = success.Result.AttestationObject, - AttestationClientDataJSON = success.Result.AttestationClientDataJson, + AttestationClientDataJson = success.Result.AttestationClientDataJson, DevicePublicKeys = new List() { success.Result.DevicePublicKey } }); diff --git a/Demo/wwwroot/js/custom.register.js b/Demo/wwwroot/js/custom.register.js index c46586d8..326e5fe6 100644 --- a/Demo/wwwroot/js/custom.register.js +++ b/Demo/wwwroot/js/custom.register.js @@ -125,7 +125,7 @@ async function registerNewCredential(newCredential) { extensions: newCredential.getClientExtensionResults(), response: { AttestationObject: coerceToBase64Url(attestationObject), - clientDataJson: coerceToBase64Url(clientDataJSON), + clientDataJSON: coerceToBase64Url(clientDataJSON), transports: newCredential.response.getTransports(), }, }; diff --git a/Src/Fido2.Development/StoredCredential.cs b/Src/Fido2.Development/StoredCredential.cs index ec9b2eaf..42306cee 100644 --- a/Src/Fido2.Development/StoredCredential.cs +++ b/Src/Fido2.Development/StoredCredential.cs @@ -46,7 +46,7 @@ public class StoredCredential /// The value of the clientDataJSON attribute when the public key credential source was registered. /// Storing this in combination with the above attestationObject item enables the Relying Party to re-verify the attestation signature at a later time. /// - public byte[] AttestationClientDataJSON { get; set; } + public byte[] AttestationClientDataJson { get; set; } public List DevicePublicKeys { get; set; } diff --git a/Test/TestFiles/assertionNoneResponse.json b/Test/TestFiles/assertionNoneResponse.json index eaef9d2c..60355446 100644 --- a/Test/TestFiles/assertionNoneResponse.json +++ b/Test/TestFiles/assertionNoneResponse.json @@ -4,7 +4,7 @@ "type": "public-key", "response": { "authenticatorData": "SZYN5YgOjGh0NBcPZHZgW4_krrmihjLHmVzzuoMdl2MBAAAANA", - "clientDataJson": "eyJjaGFsbGVuZ2UiOiJiTmhCaGk5SklURVF1WU5QbHhvSEhqMGt6TnNWU0xNVk0wSmZnU2NQWmlTN25HRjUxb21HU05MWTYxRkJaODRnRzVuUngwRUwwdEM4VGhybDBBYXpjZyIsIm9yaWdpbiI6Imh0dHBzOi8vbG9jYWxob3N0OjQ0MzI5IiwidHlwZSI6IndlYmF1dGhuLmdldCJ9", + "clientDataJSON": "eyJjaGFsbGVuZ2UiOiJiTmhCaGk5SklURVF1WU5QbHhvSEhqMGt6TnNWU0xNVk0wSmZnU2NQWmlTN25HRjUxb21HU05MWTYxRkJaODRnRzVuUngwRUwwdEM4VGhybDBBYXpjZyIsIm9yaWdpbiI6Imh0dHBzOi8vbG9jYWxob3N0OjQ0MzI5IiwidHlwZSI6IndlYmF1dGhuLmdldCJ9", "signature": "3046022100f20793dc46905c62fdbc309506b59c7cfa4fafc42dc2e51af4e58f474f64ba78022100c550af5e6516816517ddf83706fab02fe6287c04c8747a0621949456792111b6", "userHandle": null }