duo-labs / py_webauthn

Pythonic WebAuthn 🐍
https://duo-labs.github.io/py_webauthn
BSD 3-Clause "New" or "Revised" License
856 stars 171 forks source link

Flask Demo: improve base64 handing #66

Closed gradyy closed 4 years ago

gradyy commented 4 years ago

Errata: webauthn.js line 50: catch clause should log err to console, not credentialCreateOptionsFromServer credentialCreateOptionsFromServer is undefined in the catch clause.

Base 64 handling: call replace() to translate websafe base64 encoding to standard base64 encoding. This commit enables webauthn.js to support websafe base64 challenge strings.