tweag / webauthn

A library for parsing and validating webauthn/fido2 credentials
Apache License 2.0
34 stars 11 forks source link

Introduce stripRawPublicKeyCredential #54

Closed infinisil closed 2 years ago

infinisil commented 2 years ago

And use it for printing the received credential in the server

infinisil commented 2 years ago

Theoretically possible, but I really don't want to manually write Show instances. Also, Show instances should be syntactically valid Haskell to reconstruct the value directly, which wouldn't be the case with these.

Relatedly, I did start implementing ToJSON instances for the model types just for pretty-printing sake in this branch. Not yet a PR because I got boggled down by having to write informative ToJSON instances for the attestation statements.