Closed dizard closed 4 months ago
Problem different string
// $publicKeyCredentialSource->userHandle - binary // $publicKeyCredential->response->userHandle - string
Hi @dizard,
Can you show me the part where the pk source is stored?
Many thanks. Regards.
during experiments there was a problem in syphony serialize If you just do json encode and put it in the database and then createFromArray everything is ok
Moreover, if you use serialize from CORE PHP and then call it to deserialize it in order to use the object, there will be the same problem
during experiments there was a problem in syphony serialize
You are not supposed to use the Symfony serializer to convert the pk source into a JSON object. This is not supported at the moment.
If you just do json encode and put it in the database and then createFromArray everything is ok
Yes it works. This is mentioned in the documentation (last hint at the bottom of the page).
Note that createFromArray
is deprecated and a dedicated serializer is available (not the one from Symfony)
Moreover, if you use serialize from CORE PHP and then call it to deserialize it in order to use the object, there will be the same problem
I am not sure to understand what is CORE PHP compared to json_encode
This is now possible with the release 4.9.0. Let me know if you have any question. Regards.
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
Description
How to reproduce
yes, it’s very easy to do according to the documentation and you’ll get this crap https://webauthn-doc.spomky-labs.com/v/v4.8/pure-php/authenticate-your-users
Possible Solution
No response
Additional Context
No response