You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
The text was updated successfully, but these errors were encountered: