Skip to content

Commit

Permalink
Fixes #328
Browse files Browse the repository at this point in the history
  • Loading branch information
abergs committed Sep 29, 2022
1 parent 95f5143 commit fd49032
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Demo/Controller.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@ public async Task<JsonResult> 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);
}
Expand Down

0 comments on commit fd49032

Please sign in to comment.