-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WebAuthn gives error: "Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded." #1706
Comments
@wsolara hi, can you check starting from which release version this problem happens? |
hsluoyz ok, I'll try |
ping @wsolara |
hsluoyz I can see from the commits that the webauthn library was changed here - v1.261.0...v1.262.0 |
@wsolara yes, good catch. We updated the webauthn library at that time and perhaps this action introduced this bug. The original commit is: duo-labs/webauthn@a22482edaa3b It is changed to: https://github.com/go-webauthn/webauthn/releases/tag/v0.8.2 Actually |
Ok, I will try |
I have tried using different versions of webauthn, and it seems that versions from this commit onwards can trigger this bug. To address this bug, you can specify the version of webauthn as v0.5.0 or an earlier in the go.mod file of casdoor. I will continue to investigate what has caused this problem. |
🎉 This issue has been resolved in version 1.290.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Hello! I have the error when logging in with Webauthn or when adding a WebAuthn device.
Casdoor Version: v1.281.0
Browser Google Chrome Version: 111.0.5563.146
How to reproduce:
Uncaught (in promise) DOMException: Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded. at rO (https://casdoor.vitim.io/static/js/main.a301da6f.js:2:3740754) at https://casdoor.vitim.io/static/js/main.a301da6f.js:2:3909520
Or another scenario:
Recording how to reproduce it:
out_webauthn.webm
The text was updated successfully, but these errors were encountered: