-
Notifications
You must be signed in to change notification settings - Fork 84
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
Axum tutorial is broken #469
Comments
@dpasirst Edit the make file and change
to
|
@Firstyear - that fixes the compiling of the tutorial (THANKS!), but not the tutorial itself. That is still broken per the comments in the |
@Firstyear - FYI: #470 (comment) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The axum tutorial seems wildly broken :-(
I did this
I expected the following
to successfully build the tutorial AND for the tutorial to work (see "Any other comments")
What actually happened
Version (and git commit)
96ddb68 but also with tag
v0.5.1
Rust: 1.83.0
wasm-pack 0.13.1
Operating System / Version
macOS 15.2
Any other comments
The build is just the first problem. There are several other things broken with the tutorial code (note: these problems are with the tutorial code only, while the
webauthn-rs/compat_tester/webauthn-rs-demo
does seem to work (at least I am prompted to register a passkey).After modifying
webauthn-rs/tutorial/wasm/Cargo.toml
andwebauthn-rs/tutorial/server/axum/Cargo.toml
to get the code to build. The server starts listening on port 8080 but the demo does not function.assets/wasm/index.html
file expects./wasm.js
and./wasm_bg.wasm
however, the files available are./wasm_tutorial.js
and./wasm_tutorial_bg.wasm
. After modifying the index.html to the new names, thestart_register
appears to work per the server logs but I'm never prompted to register a passkey. The browser (chrome) inspect console shows a list of unintelligible errors from the wasm code.'javascript'
instead of'wasm'
is also a problem. Going tohttps://localhost:8080/
returns a404
error becausemain.rs
code has the following lines:After making that change, then
assets/index.html
requires/assets/auth.js
to be modified to/auth.js
. But even then the tutorial itself fails to complete registration with seeminglystart_register
being called no prompt to register a passkey.The text was updated successfully, but these errors were encountered: