-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for client-side discoverable WebAuthn login (#5722)
* Add support for client-side discoverable in begin login Use `(*webauthn.WebAuthn).BeginDiscoverableLogin()` to handle client-side discoverable login. * Upgrade github.com/go-webauthn/webauthn to v0.10.0 Upgrade [go-webauthn/webauthn](github.com/go-webauthn/webauthn) library to latest. The convenient finish login function (as FinishDiscoverableLogin) for discoverable functions has been added in the v0.9.0. [^1] --- [^1]: https://github.com/go-webauthn/webauthn/releases/tag/v0.9.0 * Add support for client-side discoverable in validating login Use `(*webauthn.WebAuthn).FinishDiscoverableLogin()` to handle client-side discoverable login. > **NOTE**: - The first param `rawID` in this callback function is unnecessary to check, it's handled by the third-party webauthn library later. - `userHandle` param is equal to the ID returned by (User).WebAuthnID() function.
- Loading branch information
Showing
3 changed files
with
54 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters