Skip to content

How to move from login_start/{username} to login_finish OUTSIDE of the example registration flow #413

Answered by Firstyear
bjenkinsgit asked this question in Q&A
Discussion options

You must be logged in to vote

Read: https://github.com/kanidm/webauthn-rs/blob/master/tutorial/server/tide/src/main.rs#L209

And https://github.com/kanidm/webauthn-rs/blob/master/tutorial/wasm/src/lib.rs#L220

The two work together. Where the front end triggers the call to get the challenge, the front end then uses navigator.credentials.get ( https://github.com/kanidm/webauthn-rs/blob/master/tutorial/wasm/src/lib.rs#L281 ) which creates the PublicKeyCredential, and then that's posted back to the server.

There is also a JS version:

https://github.com/kanidm/webauthn-rs/blob/master/tutorial/server/axum/assets/js/auth.js

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@bjenkinsgit
Comment options

@Firstyear
Comment options

Answer selected by bjenkinsgit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants