From fd49032faa0ed9a8fc07347d8afdef22f6ce2a92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20=C3=85berg?= Date: Thu, 29 Sep 2022 11:44:52 +0200 Subject: [PATCH] Fixes #328 --- Demo/Controller.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Demo/Controller.cs b/Demo/Controller.cs index be9c6e2c1..38833950c 100644 --- a/Demo/Controller.cs +++ b/Demo/Controller.cs @@ -124,6 +124,10 @@ public async Task MakeCredential([FromBody] AuthenticatorAttestation AaGuid = success.Result.Aaguid }); + // Remove Certificates from success because System.Text.Json cannot serialize them properly. See https://github.com/passwordless-lib/fido2-net-lib/issues/328 + success.Result.AttestationCertificate = null; + success.Result.AttestationCertificateChain = null; + // 4. return "ok" to the client return Json(success); }