There is no obvious way to store keys on the server.
Looking at:
/main/examples/server/server/server.py
The credentials variable holds the keys from registration for the logins later.
This works only in the demo app, since in a real app this has to be stored on the server and therefore serialized to json/base64.
The comments in there already says so.
But looking at how the underlying AttestedCredentialData actually is set up, I do not see how this is actually possible.
No dict, frozen... - seems impossible.
Even thought it says in webauthn.py this can be serialized, a test with a dict() of the AttestedCredentialData var from credentials fails.
Can someone please share how this is supposed to be done?
Thanks in advance
There is no obvious way to store keys on the server.
Looking at:
/main/examples/server/server/server.py
The credentials variable holds the keys from registration for the logins later.
This works only in the demo app, since in a real app this has to be stored on the server and therefore serialized to json/base64.
The comments in there already says so.
But looking at how the underlying AttestedCredentialData actually is set up, I do not see how this is actually possible.
No dict, frozen... - seems impossible.
Even thought it says in webauthn.py this can be serialized, a test with a dict() of the AttestedCredentialData var from credentials fails.
Can someone please share how this is supposed to be done?
Thanks in advance