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.
This commit is contained in:
10
go.mod
10
go.mod
@ -25,9 +25,9 @@ require (
|
||||
github.com/gin-contrib/cors v1.4.0
|
||||
github.com/gin-gonic/gin v1.9.1
|
||||
github.com/go-resty/resty/v2 v2.10.0
|
||||
github.com/go-webauthn/webauthn v0.8.6
|
||||
github.com/go-webauthn/webauthn v0.9.4
|
||||
github.com/golang-jwt/jwt/v4 v4.5.0
|
||||
github.com/google/uuid v1.3.1
|
||||
github.com/google/uuid v1.4.0
|
||||
github.com/gorilla/websocket v1.5.0
|
||||
github.com/hirochachacha/go-smb2 v1.1.0
|
||||
github.com/ipfs/go-ipfs-api v0.7.0
|
||||
@ -99,7 +99,7 @@ require (
|
||||
github.com/crackcomm/go-gitignore v0.0.0-20170627025303-887ab5e44cc3 // indirect
|
||||
github.com/davecgh/go-spew v1.1.1 // indirect
|
||||
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.1.0 // indirect
|
||||
github.com/fxamacker/cbor/v2 v2.4.0 // indirect
|
||||
github.com/fxamacker/cbor/v2 v2.5.0 // indirect
|
||||
github.com/gabriel-vasile/mimetype v1.4.2 // indirect
|
||||
github.com/gaoyb7/115drive-webdav v0.1.8 // indirect
|
||||
github.com/geoffgarside/ber v1.1.0 // indirect
|
||||
@ -110,9 +110,9 @@ require (
|
||||
github.com/go-playground/universal-translator v0.18.1 // indirect
|
||||
github.com/go-playground/validator/v10 v10.14.0 // indirect
|
||||
github.com/go-sql-driver/mysql v1.7.0 // indirect
|
||||
github.com/go-webauthn/x v0.1.4 // indirect
|
||||
github.com/go-webauthn/x v0.1.5 // indirect
|
||||
github.com/goccy/go-json v0.10.2 // indirect
|
||||
github.com/golang-jwt/jwt/v5 v5.0.0 // indirect
|
||||
github.com/golang-jwt/jwt/v5 v5.2.0 // indirect
|
||||
github.com/golang/geo v0.0.0-20210211234256-740aa86cb551 // indirect
|
||||
github.com/golang/protobuf v1.5.3 // indirect
|
||||
github.com/golang/snappy v0.0.4 // indirect
|
||||
|
Reference in New Issue
Block a user