Closed mrpachara closed 4 months ago
Hi,
Indeed, the serializer generated from the WebauthnSerializerFactory
is only suitable for reading a JSON object, but not for generating it.
It would be a nice addition though.
Will be tagged 4.9.0
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Version(s) affected
4.8.5
Description
I try to serialize
PublicKeyCredentialCreationOptions
by usingWebauthnSerializerFactory
then get error:Symfony\Component\Serializer\Exception\NotEncodableValueException
with messageMalformed UTF-8 characters, possibly incorrectly encoded
insonEncode.php:52
But this doesn't happen when I use
json_encode()
. I think it comes from some ofnormalizer
s inserializer
.How to reproduce
Example code:
But when I change
\random_bytes(16)
to'123456789012345'
, it works.I think the error comes from some of
normalizer
s inserialize()
process that change the value ofchallenge
.Possible Solution
No response
Additional Context
No response