Closed haydenth closed 5 years ago
My user.pub_key
looks something like this, which is why I suspect it's complaining about incorrect padding. I'm not quite sure what it IS looking for, though. I tried converting it to a base64 object myself with no luck.
\x70514543417959674153465949416247424164665362543636337057434346314a63486c6e6c556b434a646d6e714b3854744b785a626175496c6767467668537937517a50413175692d3556495a725034716c34364c563731634f67353848436e326c5549596b```
One thing, looks like when saving the key I need to make sure to dump out its string representation to the database
uc.pub_key = str(webauthn_credential.public_key, 'utf-8')
Will submit a pull request to the demo app
Fixed in #50. Thanks @haydenth!
Hello! Great library, I'm using it for some projects I'm working on. I'm having some problems getting the
webauthn_assertion_response.verify
method to work ONLY on the cases where I am completing the assertion of a key. The error is below.And here is the calling code. My
pub_key
is being stored in the method used in the demo flask app (which doesnt look like it is being stored as a base64 object into my db): https://github.com/duo-labs/py_webauthn/blob/master/flask_demo/app.pyThanks! Any options you can suggest would be great.